Removes given characters from the start of the string. See also: trim and trimEnd.
trimStart("abbcb", "ab"); // "bcb"trimStart("!!aaa!", "!"); // "aaa!" Copy
trimStart("abbcb", "ab"); // "bcb"trimStart("!!aaa!", "!"); // "aaa!"
Source string.
Characters to remove, taken as a whole.
Removes given characters from the start of the string. See also: trim and trimEnd.
Example