Array.prototype.map() - MDN Web Docs
https://frost.cs.uchicago.edu/ref/JavaScript/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map.html
webThe map () method creates a new array with the results of calling a provided function on every element in the calling array. JavaScript Demo: Array.map () x 1 var array1 = [1, 4, 9, 16]; 2 3 // pass a function to map 4 const map1 = array1.map(x => x * 2); 5 6 console.log(map1); 7 // expected output: Array [2, 8, 18, 32] 8 Syntax
DA: 20 PA: 80 MOZ Rank: 29