4 ms·
TC39 Proposal for Array Grouping in JavaScript
- rektide 5y agoTurning arrays into objects has been a pretty big sore-spot for me over the years in JS. This would be a wonderful addition. 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().