Creates an array of values by running each element in collection thru
iteratee. The iteratee is invoked with three arguments:
(value, index|key, collection).
Many lodash methods are guarded to work as iteratee for methods like
every, filter, map, mapValues, reject, and some.
Creates an array of values by running each element in
collection
thruiteratee
. The iteratee is invoked with three arguments: (value, index|key, collection).Many lodash methods are guarded to work as iteratee for methods like
every
,filter
,map
,mapValues
,reject
, andsome
.The guarded methods are:
ary
,chunk
,curry
,curryRight
,drop
,dropRight
,every
,fill
,invert
,parseInt
,random
,range
,rangeRight
,repeat
,sampleSize
,slice
,some
,sortBy
,split
,take
,takeRight
,template
,trim
,trimEnd
,trimStart
, andwords
Since
5.0.0
Example