Module

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

Faster and smaller alternative to Ramda
Latest
function countBy
import { countBy } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts";

Type Parameters

T extends unknown

Parameters

transformFn: (x: T) => any
list: T[]

Returns

Record<string, number>

Type Parameters

T extends unknown

Parameters

transformFn: (x: T) => any

Returns

(list: T[]) => Record<string, number>