How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
For example:
\"this is a test\"
If you use underscore.js or Lo-Dash, the underscore.string library provides string extensions, including capitalize:
_.capitalize(string) Converts first letter of the string to uppercase.
Example:
_.capitalize("foo bar") == "Foo bar"