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

# min

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

## min(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 }
```
