MCPcopy Create free account
hub / github.com/chakra-ui/panda / getMostUsedInMap

Function getMostUsedInMap

packages/parser/src/classify.ts:448–454  ·  view source on GitHub ↗
(map: Map<string, Set<any>>, pickCount: number)

Source from the content-addressed store, hash-verified

446}
447
448const 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
456const defaultGroupNames: CssSemanticGroup[] = [
457 'System',

Callers 1

getXMostUsedsFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected