Skip to content

Queue

Class | Source Code

implements IQueue

Implementation of a queue, a FIFO (first in, first out) structure.

Whether the queue is empty.


The number of items in the queue.

Clears the queue entirely.


Removes the first item in the queue.

The removed item, or undefined if the queue was empty.


Adds the specified item to the end of the queue.


The first item in the queue, or undefined if the queue is empty.


The queue as an array.


The queue as a human-readable string.