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

Method pop

src/priorityQueue.js:77–79  ·  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

75 * @returns {number|string|object}
76 */
77 pop() {
78 return this.dequeue();
79 }
80
81 /**
82 * Removes all elements that match a criteria in the callback

Callers 3

removeMethod · 0.95
containsMethod · 0.95
[Symbol.iterator]Method · 0.95

Calls 1

dequeueMethod · 0.95

Tested by

no test coverage detected