@technobuddha/library
Version:
A large library of useful functions
13 lines (12 loc) • 403 B
TypeScript
export declare type Options = {
/** Convert the rest of the string to lower case */
lowerCase?: boolean;
};
/**
* Capitalize the first letter of a string
* @param input The string to capitalize
* @param __namedParameters see {@link Options}
* @default lowerCase default
*/
export declare function toCapitalCase(input: string, { lowerCase }?: Options): string;
export default toCapitalCase;