@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 798 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseXPriorityQueueNode](./x-components.basexpriorityqueuenode.md) > [toString](./x-components.basexpriorityqueuenode.tostring.md)
## BaseXPriorityQueueNode.toString() method
Returns a string representation of this object. The string representation consists of: its priority, enclosed in square brackets (`[]`<!-- -->), followed by its key, an arrow `(->)` and the data converted to a string using JSON.stringify.
**Signature:**
```typescript
toString(): string;
```
**Returns:**
string
A string representation of this object.
## Example
```
[10] 1 -> { replaceable: false, randomKey: randomValue }
```