We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 713ca14 commit 6fe8ec2Copy full SHA for 6fe8ec2
1 file changed
src/queue.ts
@@ -46,6 +46,7 @@ export class Queue<T> {
46
}
47
48
const value = this.#buffer[this.#head]!
49
+ this.#buffer[this.#head] = undefined
50
51
this.#head = (this.#head + 1) % this.#buffer.length
52
this.#size--
0 commit comments