min

Returns the minimum of two BigInt values.

Example

min(1n, 2n);
// 1n
function min(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 smaller of the two BigInt values.