binary-heap
Binary Heap implementation in JavaScript
Installation & Usage :
npm install binary-heap-ds
const BinaryHeap = require("binary-heap-ds"); let bh = new BinaryHeap();bh.insert(10); //Inserts 10 to the heapbst.extractMax(); // pops max value out of the heap and adjusts rest of the heap