DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+6 =
Submit