DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript loop through array backwards
const arr = [1, 2, 3]; const newArray = arr.slice().reverse().map(x => x); console.log(newArray);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#loop
#array
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit