Class: Queue

Queue()

A class that represents a queue. When an item is added, it is added to the top. When an item is removed, it is removed from the bottom.

Constructor

new Queue()

Source:

Members

items

The number of items in the queue.

Source:

Methods

add(…items) → {undefined}

Add an item to the queue

Parameters:
Name Type Attributes Description
items * <repeatable>

The items to add.

Source:
Returns:
Type
undefined

remove() → {*}

Get the bottom item from the queue.

Source:
Returns:

The item.

Type
*