---
schema_version: "1"
id: b4589d2c1985b2c135c49957cc761dfd4da6595b7afc9655505f9d5dee787a77
title: arrayItem
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.7/dw-types-functions-arrayitem.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.7/dw-types-functions-arrayitem
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9916b531ee26bb34fb214885f80a0281b22105ccafd0f82f64318188381155c3
description: MuleSoft Documentation Site
release: "2.7"
latest: false
---
# arrayItem

## [](#arrayitem1)arrayItem(t: Type): Type

特定の配列のデータ型を返します。入力が Array (配列) 型でない場合、この関数は失敗します。

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

### [](#例)例

次の例では、さまざまな入力での ​`arrayItem`​ の動作を示します。

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

```DataWeave
%dw 2.0
import * from dw::core::Types
type ArrayOfString = Array<String>
type ArrayOfNumber = Array<Number>
type ArrayOfAny = Array<Any>
type ArrayOfAnyDefault = Array
output application/json
---
{
   a: arrayItem(ArrayOfString),
   b: arrayItem(ArrayOfNumber),
   c: arrayItem(ArrayOfAny),
   d: arrayItem(ArrayOfAnyDefault)
}
```

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

```Json
{
  "a": "String",
  "b": "Number",
  "c": "Any",
  "d": "Any"
}
```