@n3okill/utils
Version:
Many javascript helpers
9 lines (8 loc) • 346 B
TypeScript
/**
* Converts a CamelCase name into space-separated words.
* For example, 'PostTag' will be converted to 'Post Tag'.
* @param name the string to be converted
* @param ucwords whether to capitalize the first letter in each word
* @return the resulting words
*/
export declare function titleCase(name: string, ucwords?: boolean): string;