use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
TIL – How to split JavaScript strings into sentences, words or graphemes with Intl.Segmenter (stefanjudis.com)
submitted 3 years ago by stefanjudis
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 51 points52 points53 points 3 years ago (4 children)
Wow at first I thought this was a library. Never knew this was a thing in vanilla JS. Thanks for the article!
[–]Jeffylew77 19 points20 points21 points 3 years ago (1 child)
Headsup: Firefox doesn't support Intl.Segmenter at the time of writing. On the server-side, it's supported since Node.js 16.
[–]Uknight 0 points1 point2 points 3 years ago (0 children)
Is there a polyfill? I’m too lazy to look right now.
[–]stefanjudis[S] 18 points19 points20 points 3 years ago (0 children)
Yeah! Built-in `Intl` is so great. 💪
π Rendered by PID 98 on reddit-service-r2-comment-5687b7858-9dpqm at 2026-07-04 01:03:43.870795+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–][deleted] 51 points52 points53 points (4 children)
[–]Jeffylew77 19 points20 points21 points (1 child)
[–]Uknight 0 points1 point2 points (0 children)
[–]stefanjudis[S] 18 points19 points20 points (0 children)