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

Method enqueue

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

46 * @returns {PriorityQueue}
47 */
48 enqueue(value) {
49 this._heap.insert(value);
50 return this;
51 }
52
53 /**
54 * Adds a value to the queue

Callers 1

pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected