I want to use the map() function on a JavaScript array, but I would like it to operate in reverse order.
The reason is, I'm rendering stacked React components in a Meteor project and would like the top-level element to render first while the rest load the images below.
var myArray = ['a', 'b', 'c', 'd', 'e'];
myArray.map(function (el, index, coll) {
console.log(el + " ")
});
prints out a b c d e, but I wish there was a mapReverse() that printed e d c b a.
How can I do it?

reversethe array?mapreturns? Otherwise, you ought to considerforEach.console.log(coll[coll.length - index - 1] + " ")