SyntaxFix
Write A Post
Hire A Developer
Questions
If you use Underscore.js or Lodash, 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"