()
| 75 | } |
| 76 | |
| 77 | dequeue(): T | undefined { |
| 78 | if (this._length === 0) { |
| 79 | return undefined |
| 80 | } |
| 81 | |
| 82 | const item = this._items[this._head] |
| 83 | this._items[this._head] = undefined as T |
| 84 | this._head = (this._head + 1) % this._items.length |
| 85 | this._length-- |
| 86 | return item |
| 87 | } |
| 88 | |
| 89 | peek(): T | undefined { |
| 90 | if (this._length === 0) { |
no outgoing calls
no test coverage detected