MCPcopy 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

peekMethod · 0.95
breadthFirstSearchFunction · 0.95
breadthFirstSearchFunction · 0.95
Queue.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected