<!-- 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; [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)<!-- -->&lt;SomeRecord, SomeData&gt; \| undefined

The [node](./x-components.xpriorityqueuenode.md) at the passed position in the queue.

