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