trimStart

String
since 4.0.0

Arguments

  • string The string to trim.
  • string The characters to trim.

Returns

string the trimmed string.

Removes leading whitespace or specified characters from string.

Example of Lodash _.trimStart

_.trimStart('  abc  ');
// => 'abc  '

_.trimStart('-_-abc-_-', '_-');
// => 'abc-_-'