摘要: let abc = [99, 54, 123, 78, 82]; let average = abc.reduce((num, item, index) => { if(index != abc.length-1) { return num+item; } else { return (num+it 阅读全文
posted @ 2020-03-13 10:11 carrie_zhao 阅读(1602) 评论(0) 推荐(0)