Returns the length of the queue.
The length of the queue.
Returns an iterator for the queue, without removing elements.
Clears the queue.
Drains the queue, returning all values and emptying the queue.
Returns the value at the start of the queue without removing it.
The value at the start of the queue or undefined if the queue is empty.
Removes a value from the start of the queue.
The removed value or undefined if the queue is empty.
A simple queue implementation.