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

x/rambda/immutable.d.ts>reduceBy

Faster and smaller alternative to Ramda
Latest
function reduceBy
import { reduceBy } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

Parameters

valueFn: (acc: TResult, elem: T) => TResult

Returns

(
b: (elem: T) => string,
c: readonly T[],
) => { readonly [index: string]: TResult; }

Parameters

valueFn: (acc: TResult, elem: T) => TResult
acc: TResult

Returns

(a: (elem: T) => string, b: readonly T[]) => { readonly [index: string]: TResult; }

Parameters

valueFn: (acc: TResult, elem: T) => TResult
acc: TResult
keyFn: (elem: T) => string

Returns

(list: readonly T[]) => { readonly [index: string]: TResult; }

Parameters

valueFn: (acc: TResult, elem: T) => TResult
acc: TResult
keyFn: (elem: T) => string
list: readonly T[]

Returns

{ readonly [index: string]: TResult; }