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
You can do myArray.reverse() first.
var myArray = ['a', 'b', 'c', 'd', 'e']; myArray.reverse().map(function (el, index, coll) { console.log(el + " ") });