---
schema_version: "1"
id: ec23a154adb5a9371a1ac50e79c11ff72ea2c87b692e24cc4b4fbf22b8e30a1b
title: valueSet
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-objects-functions-valueset.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-objects-functions-valueset
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1194c384e2083be52de6efe8febab925bf2fe900177b6580e494f821ba987d0f
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# valueSet

## [](#valueset1)valueSet<K, V>(obj: { (K)?: V }​): Array<V>

オブジェクト内のキー-値ペアからの値の配列を返します。

_この関数は​**非推奨**​です。代わりに [dw::Core::valuesOf](https://docs.mulesoft.com/jp/dataweave/2.4/dw-core-functions-valuesof) を使用してください。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>obj</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">評価するオブジェクト。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、入力オブジェクトからの値を返します。

#### [](#ソース)ソース

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

#### [](#出力)出力

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