Nodejs Utililty Methods String Capitalize

List of utility methods to do String Capitalize

Description

The list of methods to do String Capitalize are organized into topic(s).

Method

Capitalize()
String.prototype.Capitalize = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);
Capitalize()
String.prototype.Capitalize = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);
String.prototype.CapitalizeAll = function() {
    return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});    
capitalise()
String.prototype.capitalise = function() {
  return this.charAt(0).toUpperCase() + this.slice(1);
capitalise()
String.prototype.capitalise = function() {
  return this.charAt(0).toUpperCase() + this.slice(1)
String.prototype.capitalize = String.prototype.capitalise
capitalise()
String.prototype.capitalise = function() {
  return this.replace(this.substr(0,1),this.substr(0,1).toUpperCase());
capitalise()
String.prototype.capitalise = function() {
    var input = this;
    var capitalisedString = input.replace(input, input.charAt(0).toUpperCase() + input.substr(1).toLowerCase());
    return capitalisedString;
capitaliseFirstLetter()
String.prototype.capitaliseFirstLetter = function() {
  return this.charAt(0).toUpperCase() + this.toLowerCase().slice(1);
capitaliseFirstLetter()
String.prototype.capitaliseFirstLetter = function() {
  return this.charAt(0).toUpperCase() + this.slice(1);
String.prototype.isBlank = function() {
  return (this.trim() == "");
capitaliseFirstLetter()
String.prototype.capitaliseFirstLetter = function()
    return this.charAt(0).toUpperCase() + this.slice(1);
};
capitalize()
String.prototype.capitalize = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);