UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

25 lines (23 loc) 562 B
import { dfdlT } from "@monstermann/dfdl"; import { uncapitalize } from "string-ts"; //#region src/string/uncapitalize.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" * ``` */ const uncapitalize$1 = dfdlT((target) => { return uncapitalize(target); }, 1); //#endregion export { uncapitalize$1 as uncapitalize };