Constructor
new UniqueQueue()
A queue for unique values
- Since
- 1.4.0
- Copyright
- schukai GmbH
- License
- AGPLv3
Methods
add(value) → {Queue}
Add a new element to the end of the 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
.remove all entries
Returns:
- Type:
- Queue
poll() → {object}
Remove the element at the front of the queue If the queue is empty, return undefined.
Remove the element at the front of the queue If the queue is empty, return undefined.
Returns:
- Type:
- object