@empathyco/x-components
Version:
Empathy X Components
29 lines (17 loc) • 847 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseXPriorityQueue](./x-components.basexpriorityqueue.md) > [toString](./x-components.basexpriorityqueue.tostring.md)
Returns a string representation of this collection. The string representation consists of a list of the queue [nodes](./x-components.xpriorityqueuenode.md) split in multiple lines, one for each one. Nodes are converted to strings as by toString().
**Signature:**
```typescript
toString(): string;
```
**Returns:**
string
A string representation of the queue.
```
[] 1 -> { replaceable: false, a: 'b' }
[] 2 -> { replaceable: false }
[] 3 -> { replaceable: false, c: 1 }
```