<!-- 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; [size](./x-components.basexpriorityqueue.size.md)

## BaseXPriorityQueue.size() method

Retrieves the number of [nodes](./x-components.xpriorityqueuenode.md) stored in the queue.

**Signature:**

```typescript
size(): number;
```
**Returns:**

number

The number of [nodes](./x-components.xpriorityqueuenode.md) stored in the queue.

