A queue that can enqueue items at the end, and dequeue items from the front.
Online Documentation
The length of the queue.
Remove all items from the queue.
Check whether this queue contains the specified item.
Dequeues an item. Returns undefined if the queue is empty.
Enqueues the specified item.
Returns the item at the front of the queue. Returns undefined if the queue is empty.
Sort the items in the queue in-place.