Javascript String capitaliseFirstLetter()

Description

Javascript String capitaliseFirstLetter()


String.prototype.capitaliseFirstLetter = function() {
  return this.charAt(0).toUpperCase() + this.slice(1);
}



PreviousNext

Related