UNPKG

syncpack

Version:

Consistent dependency versions in large JavaScript Monorepos

6 lines (5 loc) 252 B
/** * Convert an array of objects to an object, where each property of the new * object is an array whose members share the same value for the given key. */ export declare function groupBy<A extends any[]>(key: string, array: A): Record<string, A>;