Skip to content
Advertisement

Tag: group-by

Grouping array of objects by multiple keys

I feel embarrassed for asking this question as I should know how to figure it out, but I’m spinning my wheels on grouping an array of objects by multiple keys. Here’s the data: What I’ve been trying to generate with little success is the following: The schema is: I’ve tried the following with lodash This gets me part of the

Advertisement