UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 495 B
//#region src/string/padEnd.d.ts /** * `padEnd(target, length, fill)` * * Pads `target` string from the end with `fill` string until the result reaches the specified `length`. * * ```ts * padEnd("hello", 10, " "); // "hello " * ``` * * ```ts * pipe("hello", padEnd(10, " ")); // "hello " * ``` */ declare const padEnd: { (length: number, fill: string): (target: string) => string; (target: string, length: number, fill: string): string; }; //#endregion export { padEnd };