Signature
path=null start=null
Parameters
- str:
string- The string to be converted.
Returns
string - The input string converted to title case.
Example
path=null start=null
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Converts a string to title case.
toTitleCase(str: string): string
string - The string to be converted.string - The input string converted to title case.
const result = toTitleCase('hello world')
console.log(result) // 'Hello World'