vendor/assets/javascripts/jextend/array.js in jextend-0.1.0 vs vendor/assets/javascripts/jextend/array.js in jextend-0.1.2
- old
+ new
@@ -1,7 +1,15 @@
\ No newline at end of file
+Array.prototype.contains = function (element) {
+ for (var i = 0; i < this.length; i++) {
+ if (this[i] == element) {
+ return true;
+ }
+ }
+ return false;
+};