Map
methodsThe method executes the callback function for every single item in the array and returns a new array as a result. An equivalent of Array.prototype.map.
Parameters:callbackFunction
Returns:Array
The function that will be executed for every item.
—A new array with the results from the executed callback.