3 ms·
What about Object.fromEntries? See https://github.com/tc39/proposal-array-grouping https://github.com/tc39/proposal-array-grouping for why this isn’t a method
by danvk 3y ago
What about Object.fromEntries?
See https://github.com/tc39/proposal-array-grouping https://github.com/tc39/proposal-array-grouping for why this isn’t a method on Array.prototype.
- flqn 3y agoConstructs an object from kv pairs, definitely assoctiated with the "Object" prototype. Groupby is more dubious