Iterate through array and average/sum values in it

前端 未结 0 1953
天涯浪人
天涯浪人 2020-11-30 07:56

I have an array of objects that I want to iterate through and sum some values if the keys exist in the sumList array and average all others. How can we best achieve this?

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