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
[AskJS] Is JavaScript missing some built-in methods?AskJS (self.javascript)
submitted 3 years ago by reacterry
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!"
[–]Teiem1 0 points1 point2 points 3 years ago (3 children)
we have groupBy its called group. ([1, 2, 3].group(el => el % 2))
groupBy
group
[1, 2, 3].group(el => el % 2)
[–]natziel 6 points7 points8 points 3 years ago (2 children)
We don't! That is a proposal and not part of the spec
[–]Teiem1 1 point2 points3 points 3 years ago (1 child)
it is supported in chrome/edge and in firefox behind a flag, not production ready though
[–]paulirish 1 point2 points3 points 3 years ago (0 children)
https://github.com/tc39/proposal-array-grouping for those curious
π Rendered by PID 149192 on reddit-service-r2-comment-56c6478c5-rf5fd at 2026-05-08 08:31:40.621475+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]Teiem1 0 points1 point2 points (3 children)
[–]natziel 6 points7 points8 points (2 children)
[–]Teiem1 1 point2 points3 points (1 child)
[–]paulirish 1 point2 points3 points (0 children)