2 * A specialized version of `_.map` for arrays without support for callback
3 * shorthands and `this` binding.
6 * @param {Array} array The array to iterate over.
7 * @param {Function} iteratee The function invoked per iteration.
8 * @returns {Array} Returns the new mapped array.
10 function arrayMap(array, iteratee) {
12 length = array.length,
13 result = Array(length);
15 while (++index < length) {
16 result[index] = iteratee(array[index], index, array);
21 module.exports = arrayMap;