Javascript Array containsPart(key)
Array.prototype.containsPart = function(key){ var i = this.length; while( i--){//w w w . ja va 2s. c o m if( this[i] && this[i].indexOf(key) > -1 ){ return true; } } return false; }