<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPriorityQueue](./x-components.xpriorityqueue.md) &gt; [pop](./x-components.xpriorityqueue.pop.md)

## XPriorityQueue.pop property

Retrieves and removes the head [node](./x-components.xpriorityqueuenode.md) of the queue.

**Signature:**

```typescript
pop: () => XPriorityQueueNode<SomeRecord, SomeData> | undefined;
```
