Remove char from the start of str, or whitespace if char isn't provided.
char
str
Optional
trimStart(' hello'); // 'hello'trimStart('///hello', '/'); // 'hello' Copy
trimStart(' hello'); // 'hello'trimStart('///hello', '/'); // 'hello'
Remove
charfrom the start ofstr, or whitespace ifcharisn't provided.