---
schema_version: "1"
id: a928910b6170177cd62ff853600a492d7438a55fcaafc46370b6017a6c0a38ae
title: valueSet
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-objects-functions-valueset.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-objects-functions-valueset
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 09c8300842d566c93df558c2fd6fd53d96bb1cb5331160995d159bd7554ffb5f
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# valueSet

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

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

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

This method is **Deprecated**. Use `valuesOf` from Core module, instead.

### 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 from the input object.

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Objects
output application/json
---
{ "valueSet" : valueSet({a: true, b: 1}) }
```

#### Output

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