I'll read up on it until I understand it, and then add something to the article that covers it.
https://stackoverflow.com/questions/4547609/how-to-get-chara...
e.g. use Array.from() to at least process code points rather than code units, though that's still not graphemes.