* Adds a value to the queue * @public * @param {number|string|object} value * @returns {PriorityQueue}
(value)
| 57 | * @returns {PriorityQueue} |
| 58 | */ |
| 59 | push(value) { |
| 60 | return this.enqueue(value); |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Removes and returns an element with highest priority in the queue |