Whether the queue is empty.
Number of elements in the queue.
Remove all elements from the queue.
View the highest-priority element without removing it. Returns undefined if the queue is empty.
Remove and return the highest-priority element. Returns undefined if the queue is empty.
Remove a specific item from the queue. Returns true if the item was found and removed.
Remove all elements matching a predicate. Returns the number of elements removed.
Convert to array (does not modify queue). Order is not guaranteed.
A min-heap based priority queue. Elements with lower priority values are dequeued first.
Since
0.6.0