forEachRight eachRight

Collection
since 2.0.0

Arguments

  • Array|Object The collection to iterate over.
  • Function The function invoked per iteration.

Returns

Array|Object `collection`.

This method is like _.forEach except that it iterates over elements of collection from right to left.

Example of Lodash _.forEachRight

_.forEachRight([1, 2], function(value) {
  console.log(value);
});
// => Logs `2` then `1`.