Does anyone know of a (lodash if possible too) way to group an array of objects by an object key then create a new array of objects based on the grouping? For example, I hav
I made a benchmark to test the performance of each solution that don't use external libraries.
JSBen.ch
The reduce() option, posted by @Nina Scholz seems to be the optimal one.
reduce()