---
schema_version: "1"
id: 01260f800c09abb2ebf500a480a5aac7412814b1c8c168397c1856453dfedb5f
title: valuesOf
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-core-functions-valuesof.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-core-functions-valuesof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3d506d2e559923437dd051ce4e3c6a009a45637ecb4b17d64b5ec8eef1819ad4
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# valuesOf

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## valuesOf({ (K)?: V }): Array<V>

Returns an array of the values from key-value pairs in an object.

_Introduced in DataWeave 2.3.0. Supported by Mule 4.3 and later._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>obj</code></p></td><td><p>The object to evaluate.</p></td></tr></tbody></table>

### Example

This example returns the values of key-value pairs within the input object.

#### Source

```DataWeave
%dw 2.0
output application/json
---
{ "valuesOf" : valuesOf({a: true, b: 1}) }
```

#### Output

```JSON
{ "valuesOf" : [true,1] }
```
