Convert first String letter to lower case - Node.js String

Node.js examples for String:Case

Description

Convert first String letter to lower case

Demo Code


String.prototype.firstToLowerCase = function() {
    return this.substr(0, 1).toLowerCase() + this.substr(1);
};

Related Tutorials