(items: T[])
| 36 | } |
| 37 | |
| 38 | putMany(items: T[]): void { |
| 39 | if (this.freeSpace && items.length > this.freeSpace) { |
| 40 | throw new Error('Queue exceeds max size'); |
| 41 | } |
| 42 | this.items.push(...items); |
| 43 | } |
| 44 | |
| 45 | peek(): T | undefined { |
| 46 | return this.items[0]; |
no outgoing calls
no test coverage detected