Javascript String capitalizeWord()

Description

Javascript String capitalizeWord()


String.prototype.capitalizeWord = function(){
  return this.substr(0, 1).toUpperCase() + this.substr(1);
};



PreviousNext

Related