UNPKG

244 BTypeScriptView Raw
1export interface ObjectType<T> {
2 [key: string]: T[];
3}
4declare function groupBy<T>(data: T[], condition: (item: T) => string): ObjectType<T>;
5declare function groupBy<T>(data: T[], condition: string): ObjectType<T>;
6export default groupBy;