Optional
collection: ArrayLike<T>The collection to iterate over.
Optional
Optional
iteratee: ArrayIteratee<T, void>The function invoked per iteration.
Optional
Returns collection
.
5.13.0
eachRight
[[forEach]], [[forIn]], [[forInRight]], [[forOwn]], [[forOwnRight]]
forEachRight([1, 2], value => console.log(value))
// => Logs `2` then `1`.
Optional
collection: PlainObject<T>Optional
Optional
iteratee: RecordIteratee<T, void>Optional
This method is like
forEach
except that it iterates over elements ofcollection
from right to left.