(a,b) => return true if b should be before a else false
The size of heap
The top element of heap
Add an element to heap
Clear all element from heap
The process of building a heap tree
Check if heap is empty
Remove the top of heap and return
the top element or undefined if heap is empty
Generated using TypeDoc
Heap
A Heap is a special Tree-based data structure in which the tree is a complete binary tree
Examples