Counts the number of times one of chars appears at the front of a string, contiguously.
chars
countCharsFromStart(` hi`, ` `); // 2countCharsFromStart(`hi `, ` `); // 0countCharsFromStart(` hi `, ` `); // 2 Copy
countCharsFromStart(` hi`, ` `); // 2countCharsFromStart(`hi `, ` `); // 0countCharsFromStart(` hi `, ` `); // 2
Rest
Counts the number of times one of
chars
appears at the front of a string, contiguously.