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

Method size

src/priorityQueue.js:138–140  ·  view source on GitHub ↗

* Returns the number of elements in the queue * @public * @returns {number}

()

Source from the content-addressed store, hash-verified

136 * @returns {number}
137 */
138 size() {
139 return this._heap.size();
140 }
141
142 /**
143 * Checks if the queue is empty

Callers 1

[Symbol.iterator]Method · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected