- Preparing search index...
- The search index is not available
Kombo - v3.0.0
- chompIf(isGood: ((char: string) => boolean)): (<PROBLEM>(expecting: PROBLEM) => Parser.Parser<Symbol, never, PROBLEM>)
-
Parameters
-
isGood: ((char: string) => boolean)
-
- (char: string): boolean
-
Returns boolean
Returns (<PROBLEM>(expecting: PROBLEM) => Parser.Parser<Symbol, never, PROBLEM>)
Just like Simple.chompIf except you provide a problem in case a character cannot be chomped.