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

Method push

src/maxPriorityQueue.js:51–53  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

49 * @returns {MaxPriorityQueue}
50 */
51 push(value) {
52 return this.enqueue(value);
53 }
54}
55
56/**

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.95

Tested by

no test coverage detected