UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 336 B
//#region src/string/length.d.ts /** * `length(target)` * * Returns the length of `target` string. * * ```ts * length("hello world"); // 11 * ``` * * ```ts * pipe("hello world", length()); // 11 * ``` */ declare const length: { (): (target: string) => number; (target: string): number; }; //#endregion export { length };