(item)
| 21 | } |
| 22 | |
| 23 | push(item) { |
| 24 | const link = makeLink(item); |
| 25 | if (this.isEmpty) { |
| 26 | this.start = link; |
| 27 | this.end = link; |
| 28 | this.isEmpty = false; |
| 29 | } else { |
| 30 | this.end.next = link; |
| 31 | link.previous = this.end; |
| 32 | this.end = link; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | pop() { |
| 37 | if (this.isEmpty) { |
no test coverage detected