how to add 1 to every element in array javascript 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;
} );