Let's say I have the following array of objects:
objects = [{id: 1, installs: 21}, {id: 2, installs: 10}, {id:1, installs: 11}, {id:3, installs:5}]
I want to summarize all the values installfor the same id. What is the best way to do this?
source
share