Appearance
Clears BinaryHeap<T>.
BinaryHeap<T>
const heap = new BinaryHeap<number>([10, 15, 20]); heap.clear(); heap.isEmpty // => true
This method is an O(1) operation.