diff --git a/snippets.js b/snippets.js index b769658..8e6a9af 100644 --- a/snippets.js +++ b/snippets.js @@ -27,6 +27,14 @@ Array.prototype.include = function(value) { return false; }; +Array.prototype.sum = function() { + var sum = 0; + for(var i=0;i