You need to pass second argument as 0 to reduce() which becomes the initial value of sum . arr.filter(e=> e.A===2020).reduce((sum, ...
確定! 回上一頁