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