Array.prototype.map() - JavaScript | MDN
http://devdoc.net/web/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map.html
WEBJun 15, 2017 · MDN. Array .prototype .map () In This Article. The map() method creates a new array with the results of calling a provided function on every element in the calling array. var numbers = [1, 5, 10, 15]; var doubles = numbers.map(function(x) { return x * 2; }); // doubles is now [2, 10, 20, 30] // numbers is still [1, 5, 10, 15]
DA: 43 PA: 14 MOZ Rank: 56