source: node_modules/es-toolkit/dist/compat/string/upperFirst.d.ts@ a762898

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

Added visualizations

  • Property mode set to 100644
File size: 476 bytes
Line 
1/**
2 * Converts the first character of string to upper case.
3 *
4 * @param {string} str - The string that is to be changed
5 * @returns {string} - The converted string.
6 *
7 * @example
8 * const convertedStr1 = upperFirst('fred') // returns 'Fred'
9 * const convertedStr2 = upperFirst('Fred') // returns 'Fred'
10 * const convertedStr3 = upperFirst('FRED') // returns 'FRED'
11 */
12declare function upperFirst<T extends string = string>(str?: T): Capitalize<T>;
13
14export { upperFirst };
Note: See TracBrowser for help on using the repository browser.