UNPKG

@fivem-ts/shared

Version:

FiveM Typescript wrapper shared part

15 lines (14 loc) 430 B
/** * Capitalizes the first letter of each word in a sentence. * * @example * ```ts * const result = capitalizeWords("hello world"); * console.log(result); // "Hello World" * ``` * * @param {string} input - The input string where each word's first letter will be capitalized. * * @return {string} The string with each word's first letter capitalized. */ export declare function capitalizeWords(input: string): string;