@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 847 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseXPriorityQueue](./x-components.basexpriorityqueue.md) > [at](./x-components.basexpriorityqueue.at.md)
## BaseXPriorityQueue.at() method
Retrieves the [node](./x-components.xpriorityqueuenode.md) at a given position.
**Signature:**
```typescript
at(index: number): XPriorityQueueNode<SomeRecord, SomeData> | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The position to look at. |
**Returns:**
[XPriorityQueueNode](./x-components.xpriorityqueuenode.md)<!-- --><SomeRecord, SomeData> \| undefined
The [node](./x-components.xpriorityqueuenode.md) at the passed position in the queue.