28 ms·
You can roll your own or use a utility library. A simple zero-dependency library would be something like just-* [1]. Although I now prefer remeda [2] as it seem
by thenbe 3y ago
You can roll your own or use a utility library. A simple zero-dependency library would be something like just-* [1]. Although I now prefer remeda [2] as it seems to have the best typescript support, especially the strict variants such as `groupBy.strict`.
[1] https://github.com/angus-c/just#just-group-by https://github.com/angus-c/just#just-group-by
[2] https://remedajs.com/docs#groupBy https://remedajs.com/docs#groupBy