min
The min() method returns the smallest value among the provided numbers. It lets you compare several values and obtain the minimum.
Interactive example
Syntax
typescript
function min<
GenericInput extends AnyTuple<number>
>(
input: GenericInput
): numberParameters
input: Tuple of numbers to compare.
Return value
The smallest number in the provided tuple.
