A boolean indicating whether the collection is empty.
Empties the collection.
Removes an item from the queue.
The dequeued item.
Pushes an item to the queue.
The new element to enqueue.
Retrieves, but does not remove, the head of this queue i.e. then item that will be
removed if dequeue()
is called.
The head element.
Converts the collection into a plain array.
A new array containing the items in this collection.
Generated using TypeDoc
A non-negative integer indicating the number of elements in the collection.