titleCase
Converts a string to Title Case. Handles camelCase, PascalCase, kebab-case, snake_case, spaces, and mixed formats.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
str | string | The string to convert |
Returns
Section titled “Returns”string — String in Title Case
Examples
Section titled “Examples”Convert kebab-case to Title Case
Section titled “Convert kebab-case to Title Case”Transforms a delimited string into Title Case.
Convert camelCase to Title Case
Section titled “Convert camelCase to Title Case”Also handles camelCase by splitting on uppercase transitions.
