@technobuddha/library
Version:
A large library of useful functions
14 lines (13 loc) • 426 B
TypeScript
declare type Options = {
/** Convert other characters in the string to lower case */
lowerCase?: boolean;
};
/**
* Capitalize the first letter of each word in a string
*
* @param input The string to capitalize
* @param __namedParameters see {@link Options}
* @default lowercase false
*/
export declare function toCapitalWordCase(input: string, { lowerCase }?: Options): string;
export default toCapitalWordCase;