DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js reverse array using map
You just need to add .slice(0).reverse() before .map() array.slice(0).reverse().map(e => e.var)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#reverse
#array
#map
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit