Javascript String hasString=function(source)
String.prototype.hasString=function(source){ if(typeof source == 'object'){ for(var i= 0,j=source.length;i<j;i++) if(!this.hasString(source[i])) return !1; return !0; }/*from w ww . ja va 2s .c om*/ if(this.indexOf(source) != -1) return !0; };