(key: K)
| 317 | } |
| 318 | |
| 319 | remove(key: K): V | undefined { |
| 320 | const item = this._map.get(key); |
| 321 | if (!item) { |
| 322 | return undefined; |
| 323 | } |
| 324 | this._map.delete(key); |
| 325 | this.removeItem(item); |
| 326 | this._size--; |
| 327 | return item.value; |
| 328 | } |
| 329 | |
| 330 | shift(): V | undefined { |
| 331 | if (!this._head && !this._tail) { |
no test coverage detected