MCPcopy Create free account
hub / github.com/Exrick/xpay / arrayMap

Function arrayMap

xpay-code/src/main/resources/static/swagger/swagger-ui.js:14640–14649  ·  view source on GitHub ↗

* A specialized version of `_.map` for arrays without support for callback * shorthands and `this` binding. * * @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

14638 * @returns {Array} Returns the new mapped array.
14639 */
14640function arrayMap(array, iteratee) {
14641 var index = -1,
14642 length = array.length,
14643 result = Array(length);
14644
14645 while (++index < length) {
14646 result[index] = iteratee(array[index], index, array);
14647 }
14648 return result;
14649}
14650
14651module.exports = arrayMap;
14652

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected