📜  javascript reduce sum - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:37.285000             🧑  作者: Mango

代码示例5
[1,2,3,4,5].reduce((acc, current)=>acc+current, 0)