* Enqueues an item, moving nothing if that value is already present. * @param {T} item The element to add. * @returns {void}
(item)
| 37 | * @returns {void} |
| 38 | */ |
| 39 | enqueue(item) { |
| 40 | this._set.add(item); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Removes and returns the oldest enqueued item. |
no test coverage detected