---
schema_version: "1"
id: d44d4c0b5e21f90024e861f843e10224417fab23df2f7db0a01c75cabd1767f0
title: min
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-core-functions-min.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-core-functions-min
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3b26d0d3a12831c8d7ca03a576fe31d889bfa989cdefb5fc12b86bf05d72556f
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# min

## [](#min1)min(Array<T>): T | Null

配列内の最小の ​`Comparable`​ 値を返します。

項目のデータ型は同じである必要があります。同じでない場合、​`min`​ はエラーをスローします。配列が空の場合、関数は ​`null`​ を返します。

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

<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>values</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
---
{ a: min([1, 1000]), b: min([1, 2, 3]), c: min([1.5, 2.5, 3.5]) }
```

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

```JSON
{ "a": 1, "b": 1, "c": 1.5 }
```