MCPcopy Index your code
hub / github.com/deployd/deployd / arrayMap

Function arrayMap

test-app/public/sinon.js:11258–11267  ·  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 mapp

(array, iteratee)

Source from the content-addressed store, hash-verified

11256 * @returns {Array} Returns the new mapped array.
11257 */
11258 function arrayMap(array, iteratee) {
11259 var index = -1,
11260 length = array == null ? 0 : array.length,
11261 result = Array(length);
11262
11263 while (++index < length) {
11264 result[index] = iteratee(array[index], index, array);
11265 }
11266 return result;
11267 }
11268
11269 /**
11270 * 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
sinon.jsFile · 0.85
unzipFunction · 0.85
unzipWithFunction · 0.85
pickByFunction · 0.85

Calls 1

iterateeFunction · 0.85

Tested by

no test coverage detected