Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/reduceRight.js";

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

Examples

var array = [[0, 1], [2, 3], [4, 5]];

_.reduceRight(array, function(flattened, other) { return flattened.concat(other); }, []); // => [4, 5, 2, 3, 0, 1]

Parameters

collection

The collection to iterate over.

iteratee
accumulator