padEnd
ts
function String.padEnd(
target: string,
length: number,
fill: string,
): stringPads target string from the end with fill string until the result reaches the specified length.
Example
ts
import { String } from "@monstermann/string";
String.padEnd("hello", 10, " "); // "hello "ts
import { String } from "@monstermann/string";
pipe("hello", String.padEnd(10, " ")); // "hello "