Re:TC39: Add Object.groupBy and Map.groupBy
by pmontra on Tuesday December 19, 2023 @04:48PM
(#38702145)
> When dealing with DB/API results, one can of course always say that such grouping in the client is an anti-pattern.
It depends on how many data you're working on. This groupBy is useful for filters in data tables.
If you have to download a zillion of records and filter them, client side filtering is a bad idea. If you have a few thousands of them, it could possibly be the faster solution overall.
It depends on how many data you're working on. This groupBy is useful for filters in data tables.
If you have to download a zillion of records and filter them, client side filtering is a bad idea. If you have a few thousands of them, it could possibly be the faster solution overall.