js add to each item in array code example
Example: javascript add 1 to each element in array
var numberarr2 = numberarr.map( function(value) {
return value - 1;
} );
var numberarr2 = numberarr.map( function(value) {
return value - 1;
} );