UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

7 lines (6 loc) 212 B
/** * Groups array items into a Map, given a function to produce grouping key. * * @internal */ export declare function groupBy<K, T>(list: ReadonlyArray<T>, keyFn: (item: T) => K): Map<K, ReadonlyArray<T>>;