()
| 13 | |
| 14 | // Return an array of keys in the deque |
| 15 | keys() { |
| 16 | let current = this.head; |
| 17 | const keys = []; |
| 18 | while (current) { |
| 19 | keys.push(current.key); |
| 20 | current = current.next; |
| 21 | } |
| 22 | return keys; |
| 23 | } |
| 24 | |
| 25 | // Return the first node and remove it from the deque |
| 26 | popHead() { |
no outgoing calls
no test coverage detected