JavaScript Arrays

The map() Method

Create a new array by performing a function on each array element: