I want to use the map() function on a javascript array, but I would like it to operate in reverse order.
map()
The reason is, I\'m rendering stacked React co
An old question but for new viewers, this is the best way to reverse array using map
var myArray = ['a', 'b', 'c', 'd', 'e']; [...myArray].map(() => myArray.pop());