UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

25 lines (23 loc) 538 B
import { dfdlT } from "@monstermann/dfdl"; import { capitalize } from "string-ts"; //#region src/string/capitalize.ts /** * `capitalize(target)` * * Capitalizes the first letter of `target` string. * * ```ts * capitalize("hello world"); // "Hello world" * capitalize("hello"); // "Hello" * ``` * * ```ts * pipe("hello world", capitalize()); // "Hello world" * pipe("hello", capitalize()); // "Hello" * ``` */ const capitalize$1 = dfdlT((target) => { return capitalize(target); }, 1); //#endregion export { capitalize$1 as capitalize };