Namespace
StringUtils
Convert a string to title case, capitalizing the first letter of each word.
The input string.
The string in title case.
const originalString = "hello, world!";const titleCasedString = StringUtils.titleCase(originalString);console.log(titleCasedString); // Output: "Hello, World!" Copy
const originalString = "hello, world!";const titleCasedString = StringUtils.titleCase(originalString);console.log(titleCasedString); // Output: "Hello, World!"
Generated using TypeDoc
StringUtils
Convert a string to title case, capitalizing the first letter of each word.