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

Function arrayMap

packages/insomnia/bin/yarn-standalone.js:8266–8275  ·  view source on GitHub ↗

* A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array.

(array, iteratee)

Source from the content-addressed store, hash-verified

8264 * @returns {Array} Returns the new mapped array.
8265 */
8266 function arrayMap(array, iteratee) {
8267 var index = -1,
8268 length = array == null ? 0 : array.length,
8269 result = Array(length);
8270
8271 while (++index < length) {
8272 result[index] = iteratee(array[index], index, array);
8273 }
8274 return result;
8275 }
8276
8277 /**
8278 * Appends the elements of `values` to `array`.

Callers 14

baseToPairsFunction · 0.85
baseValuesFunction · 0.85
baseDifferenceFunction · 0.85
baseIntersectionFunction · 0.85
baseOrderByFunction · 0.85
basePullAllFunction · 0.85
baseToStringFunction · 0.85
createOverFunction · 0.85
yarn-standalone.jsFile · 0.85
unzipFunction · 0.85
unzipWithFunction · 0.85
pickByFunction · 0.85

Calls 1

iterateeFunction · 0.85

Tested by

no test coverage detected