Identifies the type of the array elements
Identifies the type of the elements returned by the callback function, defaults to T.
The array or array like object of elements to be searched.
The function that is called for evetn element of theArray
.
Optional
thisArg: anyThe value to use as the this
when executing the callbackFn
.
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