Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/trekhleb/javascript-algorithms
/ isEmpty
Method
isEmpty
src/data-structures/queue/Queue.js:15–17 ·
view source on GitHub ↗
* @return {boolean}
()
Source
from the content-addressed store, hash-verified
13
* @
return
{boolean}
14
*/
15
isEmpty() {
16
return
!this.linkedList.head;
17
}
18
19
/**
20
* Read the element at the front of the queue without removing it.
Callers
4
peek
Method · 0.95
breadthFirstSearch
Function · 0.95
breadthFirstSearch
Function · 0.95
Queue.test.js
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected