MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / topLevelEntries

Function topLevelEntries

src/resolution/frameworks/react.ts:1485–1487  ·  view source on GitHub ↗

The comma-separated entries of a list's inside, nested brackets kept whole.

(text: string)

Source from the content-addressed store, hash-verified

1483
1484/** The comma-separated entries of a list's inside, nested brackets kept whole. */
1485function topLevelEntries(text: string): string[] {
1486 return topLevelItems(text).filter(Boolean);
1487}
1488
1489/** The same, an empty entry kept for each hole: `[, second]` is `['', 'second']`. */
1490function topLevelItems(text: string): string[] {

Callers 2

bindFunction · 0.85
objectEntriesFunction · 0.85

Calls 1

topLevelItemsFunction · 0.70

Tested by

no test coverage detected