MCPcopy Index your code
hub / github.com/datastructures-js/priority-queue / push

Method push

src/priorityQueue.js:59–61  ·  view source on GitHub ↗

* Adds a value to the queue * @public * @param {number|string|object} value * @returns {PriorityQueue}

(value)

Source from the content-addressed store, hash-verified

57 * @returns {PriorityQueue}
58 */
59 push(value) {
60 return this.enqueue(value);
61 }
62
63 /**
64 * Removes and returns an element with highest priority in the queue

Callers 2

removeMethod · 0.95
containsMethod · 0.95

Calls 1

enqueueMethod · 0.95

Tested by

no test coverage detected