- Preparing search index...
- The search index is not available
rock-utils
- groupBy(list: Record<string, any>[], key: string): {
group: Record<string, Record<string, string>[]>;
keys: string[];
}
-
Parameters
-
list: Record<string, any>[]
-
key: string
Returns {
group: Record<string, Record<string, string>[]>;
keys: string[];
}
-
group: Record<string, Record<string, string>[]>
-
keys: string[]
Description
将数据分组
Returns