A binary heap data structure
npm install @darkblue_azurite/heapHeap
====



A binary heap data structure written in Javascript
Installation
------------
For node.js:
```
npm install --save @darkblue_azurite/heap
then require it:
`js`
var Heap = require("@darkblue_azurite/heap");
To use the library directly in the browser, copy the heap.js file from the libheap.min.js
directory into your project and include it in your webpage. provides
you with a minified version. The files in the lib directory are also transpiled to es5.
`html`
Example usage
-------------
`js
var heap = new Heap();
heap.push(5)
.push(2)
.push(1)
.push(3)
.push(8);
var arr = heap.toArray(); // [1, 3, 2, 5, 8]
``
Documentation
-------------
* API documentation