Math.min

Returns the smallest of the given values.

Syntax

min(...values)

Parameters

Return value

The smallest number.

Examples

Math.min(42, 8, 15, 4, 16, 23)
4

See also