UNPKG

@scalar/api-client

Version:

the open source API testing client

5 lines 296 B
/** * Group together array objects by a specific key */ export declare const groupBy: <T extends Record<string, unknown>, K extends keyof T, V extends string | number | symbol = Extract<T[K], string | number | symbol>>(arr: T[], key: K) => Record<V, T[]>; //# sourceMappingURL=group-by.d.ts.map