How to group array items with Object.groupBy()
Group an array by a property with Object.groupBy() instead of a reduce loop. See a realistic expense example and Map.groupBy() for object keys.
https://flaviocopes.com/javascript-object-groupby/
Post #6926
1.07K

- 👍 3