Javascript String strHas(str)

Description

Javascript String strHas(str)

String.prototype.strHas = function(str){
 if(this)/*from  ww  w  . ja v  a 2s.  c o  m*/
  return this.indexOf(str)>-1;
 else
  return false;
};



PreviousNext

Related