replace usages of lodash in project with Array.prototype counterparts