padEnd

String
since 4.0.0

Returns

string the padded string.

Pads string on the right side if it's shorter than length. Padding characters are truncated if they exceed length.

Example of Lodash _.padEnd

_.padEnd('abc', 6);
// => 'abc   '

_.padEnd('abc', 6, '_-');
// => 'abc_-_'

_.padEnd('abc', 3);
// => 'abc'