What is the JS Array Map Method?
As per MDN:
Array.prototype.map() : creates a new array populated with the results of calling a provided function on every element in the calling array.
That means we can transmogrify every individual element in an array with a custom transformation, to get a new array full of just as many items, but looking like we want them to look. Great!
How do I use it?
Let’s see it in action!