Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ shift
Method
shift
lib/internal/priority_queue.js:109–118 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
107
}
108
109
shift() {
110
const
heap = this.#heap;
111
const
value = heap[1];
112
if
(value === undefined)
113
return
;
114
115
this.removeAt(1);
116
117
return
value;
118
}
119
};
Callers
1
main
Function · 0.95
Calls
1
removeAt
Method · 0.95
Tested by
no test coverage detected