Some questions and clarifications about how to count the "real" length of a string, i.e. number of code points: https://mail.mozilla.org/pipermail/es-discuss/2012-November/026734.html …
-
-
Replying to @esdiscuss
@esdiscuss As background: to avoid breaking backward-compat, `"
".length === 2`.1 reply 2 retweets 0 likes
Replying to @esdiscuss
@esdiscuss Actually, no. `"
".length === 1` and has always been `1` as
is not an astral symbol. But, for example, `"𝌆".length === 2`.
10:58 PM - 10 Dec 2012
0 replies
3 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.