@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 982 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
index
</td><td>
number
</td><td>
The position to look at.
</td></tr>
</tbody></table>
**Returns:**
[XPriorityQueueNode](./x-components.xpriorityqueuenode.md)<!-- --><SomeRecord, SomeData> \| undefined
The [node](./x-components.xpriorityqueuenode.md) at the passed position in the queue.