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[]>>;
A polyfill for the Object.groupBy() static method.