padStart

String
since 4.0.0

Returns

string the padded string.

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

Example of Lodash _.padStart

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

_.padStart('abc', 6, '_-');
// => '_-_abc'

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