Creates an array of values by running each element of array thru iteratee. The iteratee is invoked with three arguments: (value, index, array).
array
iteratee
The array to iterate over.
The function invoked per iteration.
Returns the new mapped array.
5.0.0
function square(n) { return n * n}map([4, 8], square)// => [16, 64] Copy
function square(n) { return n * n}map([4, 8], square)// => [16, 64]
Creates an array of values by running each element of
array
thruiteratee
. The iteratee is invoked with three arguments: (value, index, array).