Javascript Array include(term)
Array.prototype.include = function(term){ for(var i = 0 ; i < this.length ; i++) if(this[i] === term) return true;/*w w w. ja va2 s .co m*/ return false; }