Module

x/rambda/rambda.js>reduce

Faster and smaller alternative to Ramda
Latest
function reduce
import { reduce } from "https://dotland.deno.dev/x/rambda@9.4.1/rambda.js";

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult
initialValue: TResult
list: T[]

Parameters

reducer: (prev: TResult, current: T) => TResult
initialValue: TResult
list: T[]

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult

Returns

(initialValue: TResult, list: T[]) => TResult

Parameters

reducer: (
prev: TResult,
current: T,
i: number,
) => TResult
initialValue: TResult

Returns

(list: T[]) => TResult