How to split JavaScript strings into sentences, words or graphemes with "Intl.Segmenter"

☆ Yσɠƚԋσʂ ☆@lemmy.ml to General Programming Discussion@lemmy.ml – 3 points –
How to split JavaScript strings into sentences, words or graphemes with "Intl.Segmenter"
stefanjudis.com
1

"First, dump to a file, then use Python's str.Split('.')." :P

I kid. I may hate JS but I'm grateful for people who post these guides when I am forced to use it.