MCPcopy
hub / github.com/vercel/hyper / arrayMap

Function arrayMap

bin/yarn-standalone.js:8355–8364  ·  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

8353 * @returns {Array} Returns the new mapped array.
8354 */
8355 function arrayMap(array, iteratee) {
8356 var index = -1,
8357 length = array == null ? 0 : array.length,
8358 result = Array(length);
8359
8360 while (++index < length) {
8361 result[index] = iteratee(array[index], index, array);
8362 }
8363 return result;
8364 }
8365
8366 /**
8367 * 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