MCPcopy Index your code
hub / github.com/tc39/proposal-observable / peek

Function peek

demo/parser.js:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 let current = null;
23
24 function* peek() {
25
26 if (current === null)
27 current = yield;
28
29 return current;
30 }
31
32 function* eat(type = "") {
33

Callers 3

eatFunction · 0.85
parseAddFunction · 0.85
parseMultiplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected