forEachRight
_.forEachRight(iteratee, collection)
# Ⓢ [Ⓣ][1] Ⓝ
This method is like _.forEach except that it iterates over elements of
collection from right to left.
Since
2.0.0
Aliases
_.eachRight
Arguments
iteratee(Function): The function invoked per iteration.collection(Array|Object): The collection to iterate over.
Returns
(*): Returns collection.
Example
_.forEachRight(function(value) {
console.log(value);
}, [1, 2]);
// => Logs `2` then `1`.