Skip to content

firstCluster

firstCluster(text): string

Defined in: packages/core/src/utils/displayWidth.ts:121

The first grapheme cluster of text, or '' when it is empty — i.e. the smallest piece a cut can leave behind, for a caller that has to make progress through a string one drawable glyph at a time.

string

string