---
schema_version: "1"
id: 9c6b882fc0d67b0762c522c2d0001591e2f25d611ffb407a289da01282de9878
title: namesOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-core-functions-namesof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-core-functions-namesof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8fee801b423a15cbf67fbe317fa1a73d5fb2504190a4d56aa8f1e3577d33fbb8
description: MuleSoft Documentation Site
release: "2.5"
latest: false
---
# namesOf

## [](#namesof1)namesOf(obj: Object): Array<String>

特定のオブジェクト内のすべてのキーの名前が含まれる文字列の配列を返します。

_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
---
{ "namesOf" : namesOf({ "a" : true, "b" : 1}) }
```

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

```JSON
{ "namesOf" : ["a","b"] }
```

## [](#namesof2)namesOf(obj: Null): Null

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

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