Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datastructures-js/priority-queue
/ isEmpty
Method
isEmpty
src/priorityQueue.js:147–149 ·
view source on GitHub ↗
* Checks if the queue is empty * @public * @returns {boolean}
()
Source
from the content-addressed store, hash-verified
145
* @returns {boolean}
146
*/
147
isEmpty() {
148
return
this._heap.isEmpty();
149
}
150
151
/**
152
* Clears the queue
Callers
2
remove
Method · 0.95
contains
Method · 0.95
Calls
1
isEmpty
Method · 0.65
Tested by
no test coverage detected