Cm5StringStream.eatWhile method
Cm5StringStream › eatWhile
Unofficial
Repeatedly calls eat with the given argument, until it fails.Signature:
eatWhile(match: string | RegExp | ((char: string) => boolean)): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| match | string | RegExp | ((char: string) => boolean) | A character, regular expression, or predicate function. |
Returns: boolean — true if any characters were consumed.