MCPcopy
hub / github.com/Kong/insomnia / map

Function map

packages/insomnia/bin/yarn-standalone.js:17185–17188  ·  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`,

(collection, iteratee)

Source from the content-addressed store, hash-verified

17183 * // => ['barney', 'fred']
17184 */
17185 function map(collection, iteratee) {
17186 var func = isArray(collection) ? arrayMap : baseMap;
17187 return func(collection, getIteratee(iteratee, 3));
17188 }
17189
17190 /**
17191 * This method is like `_.sortBy` except that it allows specifying the sort

Callers 15

flatMapFunction · 0.85
flatMapDeepFunction · 0.85
flatMapDepthFunction · 0.85
yarn-standalone.jsFile · 0.85
stripFunction · 0.85
onstatFunction · 0.85
_runMethod · 0.85
_runMethod · 0.85
_runMethod · 0.85
_runMethod · 0.85
_runMethod · 0.85
_runMethod · 0.85

Calls 5

isArrayFunction · 0.85
funcFunction · 0.85
getIterateeFunction · 0.85
fnFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected