TC39 Proposal for Array Grouping in JavaScript
github.com
github.com
I do wonder if perhaps a more general option might be better. groupBy is flexible in how one can make keys, but not flexible about the values. I feel like I'll still end up with a lot of myArray.entries().reduce().