collection

Methods

(static) map(object, path, [iteratee]) → {Object}

Source:
Since:
  • 0.1.8
See:
Replaces by an array of values by running each element in the former collection thru iteratee. The iteratee is invoked with three arguments: (value, index|key, collection).
Parameters:
Name Type Attributes Default Description
object Object The object to modify.
path Array | string The path of the property to set.
iteratee function
optional
lodash.identity The function invoked per iteration.
Returns:
Returns the updated object.
Type
Object