Priority Queue (NodeJS)
It's a simple implementation of a PriorityQueue for NodeJS. As the code is JavaScript it could be used on the browser without any trouble.
The basic usage is to push() elements and give them a priority to be used into the queue. You can also set a custom compare() function and a limit of elements to be held into the queue.
More examples can be found into the tests folder.
queue = ;queue;queue;queue; x = queuetop; // Most important notex = queuetop; // Important notex = queuetop; // Silly noticex = queuetop; // undefined