UNPKG

@technobuddha/library

Version:
14 lines (13 loc) 426 B
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;