Converts the given string to title case.
String to convert.
Title case version of the input string.
export function toTitleCase( input: string ): string { return input.replace( /\w\S*/g, ( s ) => s.charAt( 0 ).toUpperCase() + s.slice( 1 ).toLowerCase() );} Copy
export function toTitleCase( input: string ): string { return input.replace( /\w\S*/g, ( s ) => s.charAt( 0 ).toUpperCase() + s.slice( 1 ).toLowerCase() );}
Converts the given string to title case.