利用filter將不是數字的值去掉 let filarr = arr.filter(item => typeof item === 'number') //最後利用reduce加總陣列內的內容
確定! 回上一頁