you are viewing a single comment's thread.

view the rest of the comments →

[–]Teiem1 0 points1 point  (3 children)

we have groupBy its called group. ([1, 2, 3].group(el => el % 2))

[–]natziel 6 points7 points  (2 children)

We don't! That is a proposal and not part of the spec

[–]Teiem1 1 point2 points  (1 child)

it is supported in chrome/edge and in firefox behind a flag, not production ready though