Methods
# add(value) → {Queue}
Add a new element to the end of the queue.
Parameters:
Name | Type | Description |
---|---|---|
value |
object |
Throws:
-
value is not a object
- Type
- TypeError
Returns:
- Type
- Queue
# clear() → {Queue}
remove all entries
Returns:
- Type
- Queue
# poll() → {object}
Remove the element at the front of the queue If the queue is empty, return undefined.
Returns:
- Type
- object