Skip to content

@technobuddha > library > String > Case Conversion

Function: titleCase()

ts
function titleCase(input: string): string;

Defined in: title-case.ts:14

Convert a string to a title, capitalizing each word, except for the small words

Parameters

ParameterTypeDescription
inputstringthe string to make title case

Returns

string

the string in title case