---
schema_version: "1"
id: 33c493293e9c8a27c71cd4830875d1ddb0dd00f484bf3c50713e019c0691c27a
title: min
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-core-functions-min.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-core-functions-min
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ba31a4e8b428263574c3207065471998ebd9b05f40646820fbded697bc4934e1
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# min

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## min<T <: Comparable>(@StreamCapable values: Array<T>): T | Null

Returns the lowest `Comparable` value in an array.

The items must be of the same type or `min` throws an error. The function returns `null` if the
array is empty.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>values</code></p></td><td><p>The input array. The elements in the array can be any supported type.</p></td></tr></tbody></table>

### Example

This example returns the lowest numeric value of each input array.

#### Source

```DataWeave
%dw 2.0
output application/json
---
{ a: min([1, 1000]), b: min([1, 2, 3]), c: min([1.5, 2.5, 3.5]) }
```

#### Output

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