source: node_modules/es-toolkit/dist/string/startCase.d.ts@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 715 bytes
Line 
1/**
2 * Converts the first character of each word in a string to uppercase and the remaining characters to lowercase.
3 *
4 * Start case is the naming convention in which each word is written with an initial capital letter.
5 * @param {string} str - The string to convert.
6 * @returns {string} The converted string.
7 *
8 * @example
9 * const result1 = startCase('hello world'); // result will be 'Hello World'
10 * const result2 = startCase('HELLO WORLD'); // result will be 'Hello World'
11 * const result3 = startCase('hello-world'); // result will be 'Hello World'
12 * const result4 = startCase('hello_world'); // result will be 'Hello World'
13 */
14declare function startCase(str: string): string;
15
16export { startCase };
Note: See TracBrowser for help on using the repository browser.