MCPcopy Create free account
hub / github.com/datastructures-js/priority-queue / dequeue

Method dequeue

src/priorityQueue.js:68–70  ·  view source on GitHub ↗

* Removes and returns an element with highest priority in the queue * @public * @returns {number|string|object}

()

Source from the content-addressed store, hash-verified

66 * @returns {number|string|object}
67 */
68 dequeue() {
69 return this._heap.extractRoot();
70 }
71
72 /**
73 * Removes and returns an element with highest priority in the queue

Callers 1

popMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected