@monstermann/fn
Version:
A utility library for TypeScript.
22 lines • 532 B
TypeScript
//#region src/string/uncapitalize.d.ts
/**
* `uncapitalize(target)`
*
* Uncapitalizes the first letter of `target` string.
*
* ```ts
* uncapitalize("Hello World"); // "hello World"
* uncapitalize("Hello"); // "hello"
* ```
*
* ```ts
* pipe("Hello World", uncapitalize()); // "hello World"
* pipe("Hello", uncapitalize()); // "hello"
* ```
*/
declare const uncapitalize: {
(): <T extends string>(target: T) => Uncapitalize<T>;
<T extends string>(target: T): Uncapitalize<T>;
};
//#endregion
export { uncapitalize };