Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/JavaScript
/ isEmpty
Method
isEmpty
Data-Structures/Heap/KeyPriorityQueue.js:36–38 ·
view source on GitHub ↗
* Checks if the heap is empty * @returns boolean
()
Source
from the content-addressed store, hash-verified
34
* @returns boolean
35
*/
36
isEmpty() {
37
return
this._heap.length === 0
38
}
39
40
/**
41
* Adds an element to the queue
Callers
2
PrimMST
Method · 0.95
KeyPriorityQueue.test.js
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected