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