UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 847 B
<!-- 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 | Parameter | Type | Description | | --- | --- | --- | | index | number | The position to look at. | **Returns:** [XPriorityQueueNode](./x-components.xpriorityqueuenode.md)<!-- -->&lt;SomeRecord, SomeData&gt; \| undefined The [node](./x-components.xpriorityqueuenode.md) at the passed position in the queue.