# values

Returns the values of a map as an array. Order matches the key order of the map.

#### Syntax

```
<map>.values()
```

#### Arguments

None. This function is chained only and takes no arguments.

#### Examples

**Basic usage**

```
{"a": 1, "b": 2, "c": 3}.values()
// [1, 2, 3]
```

**CLI usage**

```bash
$ echo '{"name": "Tom", "age": 30}' | dasel -i json 'values()'
[
    "Tom",
    30
]
```

**Chained with other functions**

```
{"x": 10, "y": 20, "z": 30}.values().sum($this...)
// 60
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daseldocs.tomwright.me/functions/values.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
