News for hackers. Stuff that matters.
Re:TC39: Add Object.groupBy and Map.groupBy by bakkoting on Tuesday December 19, 2023 @05:58PM (#38703126)
Global iterator type is coming: https://github.com/tc39/proposal-iterator-helpers

But a method named `groupBy` on iterators traditionally means a different thing: https://github.com/tc39/proposal-array-grouping/issues/51#is...

Global iterable type it's too late for, since there's many extant iterables in the language and on the web which don't have it in their prototype chain and can't reasonably be changed.

Re:TC39: Add Object.groupBy and Map.groupBy by pharmakom on Wednesday December 20, 2023 @03:09AM (#38706433)
Stop it please! Just add the pipleline proposal and we can use a library or define our own function.