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

type

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