@devlander/utils
Version:
Comprehensive JavaScript and TypeScript utilities for seamless development. Includes object manipulation, data validation, and more.
9 lines (8 loc) • 326 B
TypeScript
/**
* Returns the first word of a string capitalized.
*
* @param str - The input string.
* @returns The first word of the input string, with the first letter capitalized and the rest in lowercase.
* @throws If an error occurs during the process.
*/
export declare const getFirstWordCapitalized: (str: string) => string;