Javascript String beginsWith(prefix)

Description

Javascript String beginsWith(prefix)


String.prototype.beginsWith=function(prefix){
  return (this.indexOf(prefix) == 0);
};



PreviousNext

Related