_.reduceRight(数组或对象迭代累加后的结果)
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
这个方法类似,除了它是从右到左遍历collection
(集合)中的元素的。
开始版本:0.1.0
参数:
collection (Array|Object)
: 用来迭代的集合。
[iteratee=_.identity] (Function)
: 每次迭代调用的函数。
[accumulator] (*)
: 初始值。
返回值:
(*)
: 返回累加后的值。
例子: