This commit is contained in:
nim-ka
2022-10-30 22:39:15 +00:00
parent 2aa7b15848
commit 56bea76e95
5 changed files with 18 additions and 7 deletions

View File

@@ -36,8 +36,8 @@ Object.defineProperties(Array.prototype, {
}
},
sum: {
value: function() {
return this.reduce((a, b) => a + b)
value: function(val) {
return this.reduce((a, b) => a + b, val)
}
},
flatDeep: {