Capitalize strings em JavaScript.

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

var myString = 'abc';
console
.log(myString.capitalize()); // output is 'Abc'