Skip to content

padEnd

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     "