Javascript String capitalizeFirstLetters()

Description

Javascript String capitalizeFirstLetters()

String.prototype.capitalizeFirstLetters = function() {
    return this.split(' ').map((s) => s = s.capitalizeOnlyFirstLetter()).join(' ')
}



PreviousNext

Related