This method is like forEach except that it iterates over elements of collection from right to left.
forEach
collection
The function invoked per iteration.
Returns collection.
2.0.0
eachRight
forEach, forIn, forInRight, forOwn, forOwnRight
forEachRight([1, 2], value => console.log(value))// => Logs `2` then `1`. Copy
forEachRight([1, 2], value => console.log(value))// => Logs `2` then `1`.
This method is like
forEachexcept that it iterates over elements ofcollectionfrom right to left.