Character Counts in JavaScript: Code Units, Code Points, Graphemes, and UTF-8 Bytes

· Dev.to