2 ms·
It's because there is no standard way to determine the properties of a unicode grapheme cluster in JavaScript. Otherwise you could do things like isDigit(), isN
by xenadu02 10y ago
It's because there is no standard way to determine the properties of a unicode grapheme cluster in JavaScript. Otherwise you could do things like isDigit(), isNumeric(), isPunctuation(), isWhitespace(), etc. Or just ask directly isLetter().
A Grapheme cluster basically corresponds to what a human would consider a "single letter", including any combining marks, etc.