(data: T)
| 11 | } |
| 12 | |
| 13 | push(data: T) { |
| 14 | if (this.arr.length < this.maxSize) { |
| 15 | this.arr.push(data); |
| 16 | } else { |
| 17 | this.arr.shift(); |
| 18 | this.arr.push(data); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | getArray() { |
| 23 | return this.arr; |
no outgoing calls
no test coverage detected