The string to convert to title case.
Whether to capitalize all first letters of each word. Default is true
.
A Result
object with either the title cased string on success, or an Error
object
if the provided input is not a string.
Generated using TypeDoc v0.24.7
Converts a string to title case by capitalizing the first letter of each word. Optionally, all first letters of each word can be capitalized. It wraps capitalize and capitalizeAll.
See
Default Value
capitalizeAllFirstLetters = true
Example
Example
Handling non-string input: