* Returns the max priority item without dequeueing it. * @return {?T}
()
| 19 | * @return {?T} |
| 20 | */ |
| 21 | peek() { |
| 22 | const l = this.length; |
| 23 | if (!l) { |
| 24 | return null; |
| 25 | } |
| 26 | return this.queue_[l - 1].item; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Enqueues an item with the given priority. |
nothing calls this directly
no outgoing calls
no test coverage detected