- Array.map() function iterate through every element in array only once.
- It do not alter original array but return new array when called.
let myArray = [1,2,3];
var newArrayMultipleOfOldArray = myArray.map(x=>x*2);
console.log(newArrayMultipleOfOldArray );
map((element) => { })
map((element, index) => { })
map((element, index, array) => { })
map(callbackFn)
map(callbackFn, thisArg)
map(function(element) { })
map(function(element, index) { })
map(function(element, index, array){ })
map(function(element, index, array) { }, thisArg)