Removes leading whitespace or specified characters from string.
string
Optional
The string to trim.
The characters to trim.
Returns the trimmed string.
4.0.0
trim, trimEnd
trimStart(' abc ')// => 'abc 'trimStart('-_-abc-_-', '_-')// => 'abc-_-' Copy
trimStart(' abc ')// => 'abc 'trimStart('-_-abc-_-', '_-')// => 'abc-_-'
Removes leading whitespace or specified characters from
string
.