We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d232212 commit cb99dbfCopy full SHA for cb99dbf
packages/sdk-core/src/dataStructures/OverwritingArray.ts
@@ -56,12 +56,14 @@ export class OverwritingArray<T> {
56
public pop(): T | undefined {
57
this.head--;
58
const element = this._array[this.head];
59
+ this._array[this.head] = undefined as never;
60
this.length--;
61
return element;
62
}
63
64
public shift(): T | undefined {
65
const element = this._array[this.start];
66
+ this._array[this.start] = undefined as never;
67
68
69
0 commit comments