MCPcopy Create free account
hub / github.com/RubyLouvre/anu / map

Function map

test/babel.js:54747–54750  ·  view source on GitHub ↗

* 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 iteratees for methods like * `_.every`, `_.filter`, `_.map`, `_.mapValues`,

(collection, iteratee)

Source from the content-addressed store, hash-verified

54745 * // => ['barney', 'fred']
54746 */
54747 function map(collection, iteratee) {
54748 var func = isArray(collection) ? arrayMap : baseMap;
54749 return func(collection, baseIteratee(iteratee, 3));
54750 }
54751
54752 module.exports = map;
54753

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.85
baseIterateeFunction · 0.85

Tested by

no test coverage detected