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