2.0.0
- fork priority_queue.js to bheap
- refactor methods:
- deq -> pop
- enq -> push
- peek -> top
- add heapify method
- size method is changed to size property
- isEmpty and forEach methods are deleted
- enhance constructor with new array parameter
- pop an top doesn't throw exceptions when binary heap is empty
- Respect queue behavior when elements have the same priority, thank you @xgbuils.
- Fixes default comparator to also work with
Numberobjects.
- Add #forEach(fn) method, thank you @kessler.
- Now you can find a pre-built file for people who don't use component when developing for the browser.
- Change
#empty()for#isEmpty().
- Testing in both Node.js and the browser.
- First version with
.DEFAULT_COMPARATOR(),#deq(),#empty(),#enq(),#peek(), and#size().