max

Returns the maximum of two BigInt values.

Example

max(1n, 2n);
// 2n
function max(a: bigint, b: bigint): bigint;

Parameters

The first BigInt value.

Type

let a: bigint;

The second BigInt value.

Type

let b: bigint;

Returns

let returnType: bigint;

The larger of the two BigInt values.