toTitleCase
toTitleCase(
input):string
Defined in: packages/core/src/utils.ts:56
Converts a string to title case, handling camelCase, snake_case, and kebab-case inputs. Minor words (e.g. “a”, “and”, “the”) are lowercased unless they appear at the start.
Parameters
Section titled “Parameters”string
The string to convert.
Returns
Section titled “Returns”string
The title-cased string.