Skip to content

#min

Returns the minimum of an array of numbers, optionally after a projection.

#min(array, @x: projection?)
Category Grouping and aggregationValid in Property value
Name Type Description
array path | array The numbers, or elements to project.
projection (optional) lambda Selects the number from each element.

number

source.json
{
"numbers": [ 3, 1, 4 ]
}
transformer.json
{
"result": "#min($.numbers)"
}
output.json
{
"result": 1
}

Try it in the playground →

#max · #sum