* 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)
| 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`. |
no test coverage detected