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

x/rambda/files/index.d.ts>reduce

Faster and smaller alternative to Ramda
Go to Latest
function reduce
import { reduce } from "https://deno.land/x/rambda@v8.6.0/files/index.d.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