Module

x/rambda/rambda.js>collectBy

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

Type Parameters

T
K extends PropertyKey

Parameters

keyFn: (value: T) => K
list: T[]

Type Parameters

T
K extends PropertyKey

Parameters

keyFn: (value: T) => K

Returns

(list: T[]) => T[][]