(value)
| 5 | } |
| 6 | |
| 7 | add(value) { |
| 8 | let currentNode = this; |
| 9 | |
| 10 | while (currentNode !== null) { |
| 11 | currentNode = currentNode.next; |
| 12 | } |
| 13 | currentNode.next = new LinkedList(value); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | module.exports = LinkedList; |
nothing calls this directly
no outgoing calls
no test coverage detected