(index: number)
| 56 | } |
| 57 | |
| 58 | protected get(index: number) { |
| 59 | if (index < 0) { |
| 60 | throw new RangeError('Can\'t get item at a negative index.'); |
| 61 | } |
| 62 | return this.data[index % this.capacity]; |
| 63 | } |
| 64 | |
| 65 | protected set(index: number, value: T) { |
| 66 | if (index < 0) { |
no outgoing calls
no test coverage detected