MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / has

Function has

src/index.ts:147–151  ·  view source on GitHub ↗
(prefix: ParseYieldable)

Source from the content-addressed store, hash-verified

145}
146
147export function has(prefix: ParseYieldable): () => ParseGenerator<boolean> {
148 return function* () {
149 return (yield [prefix, '']) !== '';
150 };
151}
152
153export function optional(...potentials: Array<ParseYieldable | any>): () => ParseGenerator<any> {
154 return function* () {

Callers 11

RuleParserFunction · 0.90
ParseIntFunction · 0.90
WeekdayParserFunction · 0.90
ParseIntFunction · 0.90
ParserMethod · 0.90
ParserMethod · 0.90
ParserMethod · 0.90
DeclarationParserFunction · 0.90
RuleParserFunction · 0.90
RulesParserFunction · 0.90
FunctionParserFunction · 0.90

Calls

no outgoing calls

Tested by 11

RuleParserFunction · 0.72
ParseIntFunction · 0.72
WeekdayParserFunction · 0.72
ParseIntFunction · 0.72
ParserMethod · 0.72
ParserMethod · 0.72
ParserMethod · 0.72
DeclarationParserFunction · 0.72
RuleParserFunction · 0.72
RulesParserFunction · 0.72
FunctionParserFunction · 0.72