UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 798 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXPriorityQueueNode](./x-components.basexpriorityqueuenode.md) &gt; [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 } ```