@empathyco/x-components
Version:
Empathy X Components
14 lines (8 loc) • 495 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XPriorityQueue](./x-components.xpriorityqueue.md) > [push](./x-components.xpriorityqueue.push.md)
## XPriorityQueue.push property
Inserts an element into the queue in the correct position based on its priority.
**Signature:**
```typescript
push: (key: keyof SomeRecord, priority: number, data?: SomeData) => void;
```