I have an array with multiple objects. I want to get the average and sum of their values.
Example original array:
[[{count: 2}],[{count: 10}]] <
[[{count: 2}],[{count: 10}]]