Here you can find the source of inArray(item)
// check if an element exists in array using a comparer function // comparer : function(currentElement) Array.prototype.inArray = function(item) { for(var i=0; i < this.length; i++) { if(item === this[i]) return true; }// w w w . j av a 2 s .c om 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; };
Array.prototype.inArray = function (element) { for (var i = 0; i < this.length; i++) { if (this[i] == element) { return i; return -1; };
Array.prototype.inArray = function (find, option) { var length = this.length; for (var i = 0; i < length; i++) { if (option == "case-insensitive") { if (this[i].toLowerCase() == find.toLowerCase()) { return true; if (this[i] == find) { ...
Array.prototype.inArray= function(i){ var _this = this; for(var x=0; x<_this.length; x++){ if(_this[x]==i) return x; return -1;
Array.prototype.inArray=function(needle){ for(var i=0;i<this.length;i++){ if(this[i]===needle){ return true; return false; var arr=["red","blue","yellow"]; ...
Array.prototype.inArray = function(needle) { for(var i=0; i < this.length; i++) { if(this[i] === needle) { return true; return false;
Array.prototype.inArray = function(p_val) { var l = this.length; for(var i = 0; i < l; i++) { if(this[i] == p_val) { return true; return false;
Array.prototype.inArray = function(val) { var l = this.length; for(var i = 0; i < l; i++) { if(this[i] == val) { return true; return false;