Here you can find the source of hasValue(pValue)
Array.prototype.hasValue = function (pValue){ var lArray = this || []; /*w ww. jav a2 s. co m*/ return lArray.indexOf(pValue) != -1; }
Array.prototype.hasValue = function(v) for(var idx in this) if(this[idx] == v) return true; return false; }; ...
Array.prototype.hasValue=function(val){ for (var i in this){ if(this[i]===val){ return i return false
Array.prototype.hasValue = function(value) { var i; for (i=0; i<this.length; i++) { if (this[i] == value) return true; } return false;