Search
 
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
Name
3+2 =