JavaScript finally has groupBy()!

3 views
Skip to first unread message

Mike Austin

unread,
Oct 30, 2025, 12:56:26 PM (5 days ago) Oct 30
to PiLuD

It's decades late, and not a complex function. At last we have it! Sheesh. Still need a polyfil since it's somewhat new.

Raoul Duke

unread,
Oct 30, 2025, 1:07:57 PM (5 days ago) Oct 30
to pi...@googlegroups.com
hm i dunno that i feel like such things, as nice as they might be, need to be in a core sdk it seems like the proverbial garden path to having too much shyte in there. a subjective call of course. without a powerful BDFL we get pork barrel nightmare kitchen sink back room deal political pile on?


On Thu, Oct 30, 2025 at 09:56 Mike Austin <mike.aus...@gmail.com> wrote:

It's decades late, and not a complex function. At last we have it! Sheesh. Still need a polyfil since it's somewhat new.

--
You received this message because you are subscribed to the Google Groups "PiLuD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pilud+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pilud/804de7ea-47f5-4d15-b49d-840b34ceb414n%40googlegroups.com.

Mike Austin

unread,
Oct 30, 2025, 8:58:24 PM (5 days ago) Oct 30
to PiLuD
I hear you, but if you've got sort(), filter(), map(), reduce()... groupBy() is expected at least by me. take() and drop can be done with slice(), so the native library is nearly complete.

I don't want to use a library just because one function I need is missing. I wrote my own polyfil anyway.

Mike Austin

unread,
Oct 31, 2025, 6:39:05 PM (4 days ago) Oct 31
to PiLuD
And it turns out I can't use groupBy() because I need to group items by tag, where items can have multiple tags. It's a different problem. Or, if groupBy() could support an array of keys.
Reply all
Reply to author
Forward
0 new messages