4 ms·
JS strings are exposed as UTF-16 in the language — surrogate pairs have length 2 and you can index into half of them.
by Ferrotin 4y ago
JS strings are exposed as UTF-16 in the language — surrogate pairs have length 2 and you can index into half of them.