---
schema_version: "1"
id: bdcea61cc4b584cf5acc2b5a9e69af0544867a4eb8abd6dc0314d541756dd2ec
title: valuesOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-core-functions-valuesof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-core-functions-valuesof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b694268a4fe7bc6d9e11d38469ba9f4b0756035b50fe4fcabb6ba47f95648bd0
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# valuesOf

## [](#valuesof1)valuesOf<K, V>(obj: { (K)?: V }): Array<V>

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

_DataWeave バージョン 2.3.0 で導入されました。_

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

<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
output application/json
---
{ "valuesOf" : valuesOf({a: true, b: 1}) }
```

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

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

## [](#valuesof2)valuesOf(obj: Null): Null

`valuesOf`​ を ​`null`​ 値に使用できるようにするヘルパー関数。

_DataWeave バージョン 2.4.0 で導入されました。_