Js:Reduce:修订间差异
imported>Soleverlee (以“Array.prototype.reduce() <source lang="javascript"> [0, 1, 2, 3, 4].reduce( function ( accumulator, currentValue, currentIndex, array ) { ret...”为内容创建页面) |
(没有差异)
|
2017年4月12日 (三) 03:53的最新版本
Array.prototype.reduce()
[0, 1, 2, 3, 4].reduce(
function (
accumulator,
currentValue,
currentIndex,
array
) {
return accumulator + currentValue;
}
);