reduceRight_.reduceRight(list, iteratee, memo, [context])
Alias: foldr
The right-associative version of reduce. Foldr is not as useful in JavaScript as it would be in a language with lazy evaluation.
1 2 3 | var list = [[0, 1], [2, 3], [4, 5]]; var flat = _.reduceRight(list, function (a, b) { return a.concat(b); }, []); => [4, 5, 2, 3, 0, 1] |
Please login to continue.