array reduce

[1, 2, 3].reduce((total, n) => {
    console.log(total, n) 
    return total + n;
}, 10);
原文地址:https://www.cnblogs.com/yangwenzhi/p/7427881.html