3 ms·
Turning 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 gene
by rektide 5y ago
Turning 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().