---
schema_version: "1"
id: b9d57d6652802081ef95a17cfcacedeb228504c6e81eb06313b720996fae0892
title: intersectionItems
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-types-functions-intersectionitems.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-types-functions-intersectionitems
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 64825f13cbd7bcac5b378d402a88d9c57b658c5a915c5c2850aec137f30776de
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# intersectionItems

## [](#intersectionitems1)intersectionItems(Type): Array<Type>

特定の Intersection (交差) 型を定義するすべての型の配列を返します。 入力が Intersection (交差) 型でない場合、この関数は失敗します。

_DataWeave 2.3.0 で導入されました。Mule 4.3 以降でサポートされます。_​

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

<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">t</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">チェックするデータ型。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`intersectionItems`​ の動作を示します。 `AType`​ 変数は、2 つのオブジェクト間の ​`&`​ を使用して Intersection (交差) 型 ​`{name: String} & {age: Number}`​ を定義します。

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

```DataWeave
%dw 2.0
import * from dw::core::Types
type AType = {name: String} & {age: Number}
output application/json
---
{
   a: intersectionItems(AType)
}
```

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

```Json
{
  "a": ["Object","Object"]
}
```