MCPcopy Index your code
hub / github.com/TheAlgorithms/JavaScript / isEmpty

Method isEmpty

Data-Structures/Queue/Queue.js:109–111  ·  view source on GitHub ↗

* @description - Return is queue empty or not * @returns {boolean}

()

Source from the content-addressed store, hash-verified

107 * @returns {boolean}
108 */
109 isEmpty() {
110 return this.length === 0
111 }
112}
113
114export default Queue

Callers 6

breadthFirstSearchFunction · 0.95
breadthFirstShortestPathFunction · 0.95
dequeueMethod · 0.95
peekFirstMethod · 0.95
peekLastMethod · 0.95
Queue.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected