The arrMap() method creates a new array populated with the results of calling a provided function on every
element in the calling array.
arrMap calls a provided callbackFn function once for each element in an array, in order, and constructs
a new array from the results. callbackFn is invoked only for indexes of the array which have assigned
values (including undefined).
It is not called for missing elements of the array; that is:
The arrMap() method creates a new array populated with the results of calling a provided function on every element in the calling array.
arrMap
calls a provided callbackFn function once for each element in an array, in order, and constructs a new array from the results. callbackFn is invoked only for indexes of the array which have assigned values (including undefined).It is not called for missing elements of the array; that is:
Since
0.3.3
Example