()
| 21 | } |
| 22 | |
| 23 | shift(): T | null { |
| 24 | if (this.firstItem) { |
| 25 | const item = this.firstItem |
| 26 | this.firstItem = item.next |
| 27 | if (!this.firstItem) { |
| 28 | this.lastItem = null |
| 29 | } |
| 30 | this.existsMap.delete(item.current) |
| 31 | return item.current |
| 32 | } |
| 33 | return null |
| 34 | } |
| 35 | |
| 36 | isEmpty() { |
| 37 | return !this.firstItem |
no outgoing calls
no test coverage detected