Capitalize the first letter of string in JavaScript - Stack Overflow
function firstLetterToUpperCase(str) { return str.replace(/^\w/, function($0) { return $0.toUpperCase(); }); }
Labels: JavaScript
function firstLetterToUpperCase(str) { return str.replace(/^\w/, function($0) { return $0.toUpperCase(); }); }
Labels: JavaScript
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home