Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

objectGroupBy

A polyfill for the Object.groupBy() static method.

function objectGroupBy<K extends PropertyKey, T>(items: Iterable<T>, keySelector: (item: T, index: number) => K): Partial<Record<K, T[]>>;
§
objectGroupBy<K extends PropertyKey, T>(items: Iterable<T>, keySelector: (item: T, index: number) => K): Partial<Record<K, T[]>>
[src]

§Type Parameters

§
K extends PropertyKey
[src]

§Parameters

§
items: Iterable<T>
[src]
§
keySelector: (item: T, index: number) => K
[src]

§Return Type

§
Partial<Record<K, T[]>>
[src]