MCPcopy Create free account
hub / github.com/sindresorhus/p-queue / size

Method size

source/priority-queue.ts:115–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 get size(): number {
116 return this.#queue.length - this.#head;
117 }
118
119 #compact(): void {
120 // Compaction restores the invariant that the whole array is the live sorted range.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected