Skip to content

padEnd

padEnd(maxLength, fillString?): (s) => string

Defined in: Data/Str.ts:209

Pads the end of a string to a specified length. Data-last: use in pipe.

number

string

(s) => string

pipe("hi", Str.padEnd(5, "."));  // "hi..."
pipe("hi", Str.padEnd(5));       // "hi   "