Appearance
Returns the root node in the BinaryHeap
const heap = new BinaryHeap<number>([10, 15, 20]); heap.peek() // => 20
This method is an O(1) operation.