Other array operations are intended to produce new values. This can be a property from array elements or any other value calculated for each. The map method visits each element and collects the values into a new array.
In this recipe, we'll take a look at how to use map to create an array of new values.