effect-io-ai

Package: effect
Module: BigInt

BigInt.max

Returns the maximum between two bigints.

When to use

Use to select the larger of two bigint values.

Example (Finding the maximum bigint)

import { BigInt } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(BigInt.max(2n, 3n), 3n)

See

Signature

declare const max: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint; }

Source

Since v2.0.0