Javascript String capitalizeOnlyFirstLetter()

Description

Javascript String capitalizeOnlyFirstLetter()



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



PreviousNext

Related