Sum and average values of multiple objects in an array into one array

前端 未结 0 1422
猫巷女王i
猫巷女王i 2020-11-28 01:05

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}]]
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题