Methods
add(value) → {Queue}
- Source:
Add a new element to the end of the queue.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
- Type
- Queue
clear() → {Queue}
- Source:
remove all entries
Returns:
- Type
- Queue
isEmpty() → {boolean}
- Source:
Returns:
- Type
- boolean
peek() → {*}
- Source:
Read the element at the front of the queue without removing it.
Returns:
- Type
- *
poll() → {*}
- Source:
Remove the element at the front of the queue If the queue is empty, return undefined.
Returns:
- Type
- *