* 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
(array, iteratee)
| 2933 | * @returns {Array} Returns the new mapped array. |
| 2934 | */ |
| 2935 | function arrayMap(array, iteratee) { |
| 2936 | var index = -1, |
| 2937 | length = array.length, |
| 2938 | result = Array(length); |
| 2939 | |
| 2940 | while (++index < length) { |
| 2941 | result[index] = iteratee(array[index], index, array); |
| 2942 | } |
| 2943 | return result; |
| 2944 | } |
| 2945 | |
| 2946 | /** |
| 2947 | * A specialized version of `_.max` for arrays without support for iteratees. |
no outgoing calls
no test coverage detected