From e31cb1beb799ed5dcf5aafd0f226f94f10a5dfb4 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 24 Aug 2011 02:20:13 +0100 Subject: [PATCH] added more to snippets --- snippets.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/snippets.js b/snippets.js index 3967c0a..f0b572a 100644 --- a/snippets.js +++ b/snippets.js @@ -15,6 +15,18 @@ Array.prototype.collect = function(fun) { } }; +Array.prototype.include = function(value) { + var includes = false; + for(var i=0;i