Array of objects - how to group items by property and squash data from each of grouped items into 1
Grouping and Squashing Data in Arrays of Objects A Comprehensive Guide Working with large datasets often requires organizing information into meaningful groups