Skip to content

min

Signature

min(array[number]|array[string])

Description

Returns the lowest found element in the provided array argument.

Examples

With numbers

min([`1`, `5`, `3`]) == `1`

With strings

min(['b', 'a', 'c']) == 'a'

With an empty array

min(`[]`) == null