Skip to content

Commit 4ff5646

Browse files
committed
Updated dist and version.
1 parent af57d51 commit 4ff5646

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

dist/utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ ArrayUtil = {
269269
return list.sort(compare);
270270
},
271271

272+
sum: function(list) {
273+
return ArrayUtil.reduce(list, function(a, b) {
274+
return (a + b);
275+
}, 0);
276+
},
277+
272278
unique: function(list)
273279
{
274280
var item;

0 commit comments

Comments
 (0)