Here you can find the source of in(elementToFind)
Array.prototype.in = function(elementToFind) { for(var i = 0 ; i < this.length ; i++) { if(this[i] === elementToFind) { return true; }/* w w w . j a v a 2 s. c o m*/ } return false; };
Array.prototype.in = function(ele) { for (var i=0; i<this.length; i++) { if (this[i] == ele) { 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; };