The comma-separated entries of a list's inside, nested brackets kept whole.
(text: string)
| 1505 | |
| 1506 | /** The comma-separated entries of a list's inside, nested brackets kept whole. */ |
| 1507 | function 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']`. */ |
| 1512 | function topLevelItems(text: string): string[] { |
no test coverage detected