Array.map()
Creates a new array with the results of calling a provided function on every element.
Syntax
javascript
array.map(callback(element, index, array))Example
javascript
const nums = [1, 2, 3];
const doubled = nums.map(n => n * 2);
// [2, 4, 6]