UNPKG

codetrix

Version:

A lightweight lodash-style utility library

11 lines (10 loc) 241 B
/** * Capitalizes the first letter of a string. * * @param str - The string to capitalize. * @returns The capitalized string. * * @example * capitalize('hello'); // 'Hello' */ export declare function capitalize(str: string): string;