Nodejs String Capitalize firstUpper()

Here you can find the source of firstUpper()

Method Source Code

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

Related

  1. ucfirst()
    String.prototype.ucfirst = function() {
        return this.substr(0, 1).toUpperCase() + this.substr(1);
    
  2. ucfirst()
    String.prototype.ucfirst = function(){
      var str = this + '';
        return str.charAt(0).toUpperCase() + str.substr(1);
    
  3. ucfirst(str)
    String.prototype.ucfirst = function(str) {
        str += '';
        var f = str.charAt(0).toUpperCase();
        return f + str.substr(1);
    };
    
  4. firstToUpper()
    String.prototype.firstToUpper = function() {
      return this.charAt(0).toUpperCase() + this.slice(1);
    
  5. firstToUpper()
    var useful = {}
    String.prototype.firstToUpper = function() {
      return this.charAt(0).toUpperCase() + this.slice(1);
    Array.prototype.shuffle = function() {
      var currentIndex = this.length, temporaryValue, randomIndex ;
      while (0 !== currentIndex) {
        randomIndex = Math.floor(Math.random() * currentIndex);
        currentIndex -= 1;
    ...