* 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)
| 14638 | * @returns {Array} Returns the new mapped array. |
| 14639 | */ |
| 14640 | function 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 | |
| 14651 | module.exports = arrayMap; |
| 14652 |
nothing calls this directly
no outgoing calls
no test coverage detected