Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
variable groupByReduce
import { groupByReduce } from "https://deno.land/x/gamla@65.0.0/src/mapping.ts";

type

<T, S, K extends Primitive>(
key: (_: T) => K,
reducer: Reducer<T, S>,
initial: () => S,
) => (_: T[]) => Record<K, S>