Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>reduce

Faster and smaller alternative to Ramda
Go to Latest
function reduce
import { reduce } from "https://deno.land/x/rambda@9.2.1/mod.ts";

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