Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/CtCI-6th-Edition-JavaScript
/ dequeue
Method
dequeue
chapter07/util/Queue.js:13–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
}
12
13
dequeue() {
14
let
node = this._list.popFirst();
15
return
node.value;
16
}
17
18
peek() {
19
return
this._list.head ? this._list.head.value : null;
Callers
nothing calls this directly
Calls
1
popFirst
Method · 0.45
Tested by
no test coverage detected