Skip to content
On this page

BinaryHeap<T>.isEmpty ​

Checks if the BinaryHeap<T> is empty

Example ​

typescript
const heap = new BinaryHeap<number>();

heap.isEmpty // => true

Remarks ​

This method is an O(1) operation.