Javascript Array plumInArray(e)
Array.prototype.plumInArray = function(e){ var inArray = false; //console.log(this, typeof this); for(var i = 0, len = this.length; i<len; i++){ if(e === this[i]){ inArray = true;//from ww w. j a va 2 s. c o m break; } } return inArray; };