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
Just try this one it works fine for me.
let grouped = _.groupBy(cars, 'make');