Here you can find the source of inArray(comparer)
/* /*from www .j a va 2 s .c o m*/ Custom extensions required by force.js Created by Christos Koumenides 26/March/2015 */ // check if an element exists in array using a comparer function // comparer : function(currentElement) Array.prototype.inArray = function(comparer) { for(var i=0; i < this.length; i++) { if(comparer(this[i])) return true; } return false; };
Array.prototype.inArr = function (item){ for (var i = 0; i < this.length; i++){ if(this[i] === item){ return true;
Array.prototype.inArray = function() { for(var j in this) { if(this[j] == arguments[0]) { return true; return false;
Array.prototype.inArray = function() for (var j in this) { if (this[j] == arguments[0]) { return true; return false;
Array.prototype.inArray = function(comparer) { for(var i=0; i < this.length; i++) { if(comparer(this[i])) return true; return false; };
Array.prototype.inArray = function(comparer) { for(var i=0; i < this.length; i++) { if(comparer(this[i])) return true; return false; };
Array.prototype.inArray = function(comparer) { for (var i = 0; i < this.length; i++) { if (comparer(this[i])) return true; return false; }; Array.prototype.pushIfNotExist = function(element, comparer) { if (!this.inArray(comparer)) { this.push(element); ...
Array.prototype.inArray = function(comparer) { for(var i=0; i < this.length; i++) { if(comparer(this[i])) return true; return false; };
Array.prototype.inArray = function(e) { for (var i in this){ if (this[i]===e) return true; return false;
Array.prototype.inArray = function(e) { var length = this.length; for (var i = 0; i < length; i++) { if (this[i] == e) return true; return false; };