in my js I am trying to substring()
text which generally works but unfortunately decapitates emojis.
usaText = "A
in my js I am trying to substring()
text which generally works but unfortunately decapitates emojis.
usaText = "A
So this isn't really an easy thing to do, and I'm inclined to tell you that you shouldn't write this on your own. You should use a library like runes.
Just a simple
npm i runes
, then: