Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

map in javascript

const arr = [1, 2, 3, 4, 5, 6];
const mapped = arr.map(el => el + 20);	//[21, 22, 23, 24, 25, 26]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #map #javascript
ADD COMMENT
Topic
Name
8+8 =