()
| 28 | return this.stackOldest.pop(); |
| 29 | } |
| 30 | peek() { |
| 31 | this.#shiftStacks(); // Ensure stackOldest has the current elements |
| 32 | return this.stackOldest.peek(); |
| 33 | } |
| 34 | empty() { |
| 35 | return this.stackNewest.size() + this.stackOldest.size() === 0; |
| 36 | } |
nothing calls this directly
no test coverage detected