peek() {
        if (this.isEmpty()) {
            throw new Error("Heap is empty.");
        }

        return this[array][0];
    }
Returns the value at the top of the heap but does not remove it from
the heap.
@returns {*} The value at the top of the heap.