> For the complete documentation index, see [llms.txt](https://daseldocs.tomwright.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daseldocs.tomwright.me/v1/selectors/length.md).

# Length

## Description

The length selector can be used to return the length of the current node.

## Usage

```
.[#]
```

### Supported types

The length selector can be used on the following data types:

* Array/slice
* Map/object
* String

## Example

```shell
$ echo '{"numbers": [5, 2, 3, 1, 4]}' | dasel -p json '.numbers.[#]'
5
```
