* Removes and returns an element with highest priority in the queue * @public * @returns {number|string|object}
()
| 66 | * @returns {number|string|object} |
| 67 | */ |
| 68 | dequeue() { |
| 69 | return this._heap.extractRoot(); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Removes and returns an element with highest priority in the queue |