JavaScript
-  [1, 2, 3, 4].reduce((a, b) => a + b, 0)
-  _.sum([1, 2, 3, 4])
 This article is reprinted from https://www.wujingquan.com/posts/96482e79.html
 This site is for inclusion only, and the copyright belongs to the original author.
[1, 2, 3, 4].reduce((a, b) => a + b, 0)_.sum([1, 2, 3, 4]) This article is reprinted from https://www.wujingquan.com/posts/96482e79.html
 This site is for inclusion only, and the copyright belongs to the original author.