欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
Array.prototype.reduce()
[0, 1, 2, 3, 4].reduce( function ( accumulator, currentValue, currentIndex, array ) { return accumulator + currentValue; } );