Stop Splitting Strings the Wrong Way: Discover Intl.Segmenter
How many times have you done this?
const text = "I love pizza and pasta";
text.split(" ");
// ["I", "love", "pizza", "and", "pasta"]
Looks fine — until you deal with punctuation, multiple spaces, or languages that don’t even use spaces. Try splittin...
dev.giuseppeciullo.it3 min read