Skip to content

Documentation / base / splitStringByGraphemes

Function: splitStringByGraphemes() ​

splitStringByGraphemes(text): string[]

Defined in: libs/base/src/utils.ts:508

Splits a string into an array of grapheme clusters (user-perceived characters).

Parameters ​

text ​

string

The input string to split.

Returns ​

string[]

An array of grapheme clusters.

Released under the MIT License.