Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
eat
Function · 0.85
parseAdd
Function · 0.85
parseMultiply
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected