.forEachRight(collection, [iteratee=.identity])
This method is like _.forEach
except that it iterates over elements of collection
from right to left.
Since
2.0.0
Aliases
_.eachRight
Arguments
collection
(Array|Object): The collection to iterate over.[iteratee=.identity]
(Function)_: The function invoked per iteration.
Returns
(*): Returns collection
.
Example
_.forEachRight([1, 2], function(value) {console.log(value);});// => Logs `2` then `1`.
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .