Use lodash, no need for an extra dependency