Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add 1 to each element in array

var numberarr2 = numberarr.map( function(value) { 
    return value - 1; 
} );
 
PREVIOUS NEXT
Tagged: #javascript #add #element #array
ADD COMMENT
Topic
Name
9+6 =