()
| 24 | } |
| 25 | |
| 26 | pop() { |
| 27 | this.#shiftStacks(); // Ensure stackOldest has the current elements |
| 28 | return this.stackOldest.pop(); |
| 29 | } |
| 30 | peek() { |
| 31 | this.#shiftStacks(); // Ensure stackOldest has the current elements |
| 32 | return this.stackOldest.peek(); |
nothing calls this directly
no test coverage detected