JMAC Docs

JMAC / docs / Biggest

Biggest()Method : JMath

Finds the biggest number in an array


Values

function Biggest(...values: Number): Number

Parameters

values
A variable length rest parameter which can be passed any amount of numbers.

Returns

Number
The biggest of all passed .

Common Errors

SyntaxError: values must be of type Array, x given
Often occurs when values is accidentaly passed a straight Number.

Example


const average = JMath.Biggest([3, 8, 14, 9, 3, 8, 25]);

// Should return:

25


Log

JMAC 1a | 02-09-25

Method introduced.