(key: K)
| 88 | } |
| 89 | |
| 90 | public delete(key: K): boolean { |
| 91 | const item = this._map.get(key); |
| 92 | if (!item) { |
| 93 | return false; |
| 94 | } |
| 95 | this._map.delete(key); |
| 96 | this.removeItem(item); |
| 97 | this._size--; |
| 98 | return true; |
| 99 | } |
| 100 | |
| 101 | public shift(): V | undefined { |
| 102 | if (!this._head && !this._tail) { |
nothing calls this directly
no test coverage detected