Skip to content

Commit

Permalink
Updated dist and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Aug 16, 2021
1 parent af57d51 commit 4ff5646
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dist/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ ArrayUtil = {
return list.sort(compare);
},

sum: function(list) {
return ArrayUtil.reduce(list, function(a, b) {
return (a + b);
}, 0);
},

unique: function(list)
{
var item;
Expand Down
Loading

0 comments on commit 4ff5646

Please sign in to comment.