Skip to main content
Module

x/lodash_es/mod.ts>reduceRight

lodash for deno use
Latest
function reduceRight
import { reduceRight } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

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