Javascript String capFirstLetter()

Description

Javascript String capFirstLetter()

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



PreviousNext

Related