2026-05-31 13:54:31 +02:00

15 lines
530 B
TypeScript

//#region src/compat/string/lowerFirst.d.ts
/**
* Converts the first character of string to lower case.
*
* @param {string} str - The string that is to be changed
* @returns {string} - The converted string.
*
* @example
* const convertedStr1 = lowerCase('fred') // returns 'fred'
* const convertedStr2 = lowerCase('Fred') // returns 'fred'
* const convertedStr3 = lowerCase('FRED') // returns 'fRED'
*/
declare function lowerFirst<T extends string = string>(str?: T): Uncapitalize<T>;
//#endregion
export { lowerFirst };