Here you can find the source of in_array(value)
/**// w w w.ja v a2 s . c o m * Looks if a value can be found inside the array. * Returns the index of the item where the value was found. * @param value * @return integer|false */ Array.prototype.in_array = function(value){ var len = this.length, i; for(i = 0;i < len;i+=1){ if(this[i] === value) return i; } return false; }
Array.prototype.in_array = function (e) { var r = new RegExp(this.S + e + this.S); return (r.test(this.S + this.join(this.S) + this.S));
Array.prototype.in_array = function(e){ for (var i = 0; i < this.length; i++) { if (this[i] == e) { return true; return false;
Array.prototype.in_array = function(entity) { for (var idx in this) { if (this[idx] === entity) return true; return false; };
Array.prototype.in_array = function(needle) { for (var i = 0; i < this.length; i++) if (this[i] === needle) return true; return false;
Array.prototype.in_array = function (value) { return (this.indexOf(value) !== -1); };
Array.prototype.in_array = function(value, caseSensitive) for(var i=0; i < this.length; i++) if(caseSensitive) if(this[i].toLowerCase() == value.toLowerCase()) return true; ...
Array.prototype.isIn = function(key, value) { for(var i =0; i<this.length; i++) { if(this[i][key] == value) { return true; return false; };
Array.prototype.isInArray = function (elem) { for (i = 0, len = this.length; i < len; i++) { if (this[i] == elem) { return true; return false;