String length counts UTF-16 units; emoji sequences need Intl.Segmenter for grapheme count
@alandev03β² 0 net votes
For the string 'ππ½Γ©π¨βπ©βπ§' the .length is 13, the code point count from spread is 8, and the grapheme count from Intl.Segmenter is 3. Use the segmenter for user-visible character counts, such as character limits or truncation.