---
schema_version: "1"
id: 4ec24bc2516aec676a72bb72862a68783f70c59a6cf1741da27bfc40fc7cd9bf
title: nameSet
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-objects-functions-nameset.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-objects-functions-nameset
source_site: docs.mulesoft.com
content_type: documentation
content_hash: fc46e868304fefbba1afa967cba283bfd42fa8d13a5167c55b89672b34c8c33d
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# nameSet

## [](#nameset1)nameSet(obj: Object): Array<String>

オブジェクトからのキーの配列を返します。

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

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

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

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

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