Converts a string to title case, capitalizing the first letter of each word.
The input string.
The string in title case.
1.1.0
titleCase("hello world"); // "Hello World"titleCase("javaScript IS fun"); // "Javascript Is Fun" Copy
titleCase("hello world"); // "Hello World"titleCase("javaScript IS fun"); // "Javascript Is Fun"
Converts a string to title case, capitalizing the first letter of each word.