UNPKG

@empathyco/x-components

Version:
20 lines (11 loc) 712 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXPriorityQueue](./x-components.basexpriorityqueue.md) &gt; [pop](./x-components.basexpriorityqueue.pop.md) ## BaseXPriorityQueue.pop() method See [XPriorityQueue.pop](./x-components.xpriorityqueue.pop.md)<!-- -->. **Signature:** ```typescript pop(): XPriorityQueueNode<SomeRecord, SomeData> | undefined; ``` **Returns:** [XPriorityQueueNode](./x-components.xpriorityqueuenode.md)<!-- -->&lt;SomeRecord, SomeData&gt; \| undefined The head [node](./x-components.xpriorityqueuenode.md) of the queue or undefined if it is empty.