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

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

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