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

Function topLevelEntries

src/resolution/frameworks/react.ts:1507–1509  ·  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

1505
1506/** The comma-separated entries of a list's inside, nested brackets kept whole. */
1507function topLevelEntries(text: string): string[] {
1508 return topLevelItems(text).filter(Boolean);
1509}
1510
1511/** The same, an empty entry kept for each hole: `[, second]` is `['', 'second']`. */
1512function topLevelItems(text: string): string[] {

Callers 2

bindFunction · 0.85
objectEntriesFunction · 0.85

Calls 1

topLevelItemsFunction · 0.70

Tested by

no test coverage detected