Reduce function only working once in JavaScript code

后端 未结 0 1920
闹比i
闹比i 2020-12-02 07:03

I currently have to functions which use the Array.reduce method but only the first function works.

let profit = incomes.reduce((a,b) => a.getAmount() + b.g         


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