(position1, position2)
| 146 | } |
| 147 | |
| 148 | _swap(position1, position2) { |
| 149 | // Helper function to swap 2 nodes |
| 150 | ;[this._heap[position1], this._heap[position2]] = [ |
| 151 | this._heap[position2], |
| 152 | this._heap[position1] |
| 153 | ] |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | export { KeyPriorityQueue } |
no outgoing calls
no test coverage detected