* Retrieves the top element of the heap without removing it. * @returns {*} - The top element of the heap.
()
| 99 | * @returns {*} - The top element of the heap. |
| 100 | */ |
| 101 | peek() { |
| 102 | return this.heap[0] |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Removes and returns the top element of the heap. |
no outgoing calls
no test coverage detected