UNPKG

@sebgroup/frontend-tools

Version:
7 lines (6 loc) 261 B
/** * Capitalizes a string word. It doesn't capitalize a sentence, only the first letter. * @param {string} str The string needed to be capitalized * @returns {string} The capitalized string */ export declare function capitalize(str: string): string;