Node.js examples for String:Case
Capitalize first letter of the provided string and return the modified string.
function sentenceCase( string ) { var lower = string.toLowerCase(); return lower.substr(0,1).toUpperCase() + lower.substr(1); }