(map: Map<string, Set<any>>, pickCount: number)
| 446 | } |
| 447 | |
| 448 | const getMostUsedInMap = (map: Map<string, Set<any>>, pickCount: number) => { |
| 449 | return Array.from(map.entries()) |
| 450 | .map(([key, list]) => [key, list.size] as const) |
| 451 | .sort((a, b) => b[1] - a[1]) |
| 452 | .slice(0, pickCount) |
| 453 | .map(([key, count]) => ({ key, count })) |
| 454 | } |
| 455 | |
| 456 | const defaultGroupNames: CssSemanticGroup[] = [ |
| 457 | 'System', |
no test coverage detected