Package: effect
Module: BigInt
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
min for selecting the smaller valueSignature
declare const max: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint; }
Since v2.0.0