Javascript .map() function to iterate array and object items

.map() with call back function

.map() accepts a callback function as one of its arguments, and an important parameter of that function is the current value of the item being processed by the function. This is a required parameter. With this parameter, we can modify each individual item in an array and create a new function off of it.

Another way to to do this iteration

Convert an string to array using map function

Reformatting array object in Javascript using map function

Map function to iterate an Javascript object