Package: effect
Module: BigInt
Returns the minimum between two bigints.
When to use
Use to select the smaller of two bigint values.
Example (Finding the minimum bigint)
import { BigInt } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(BigInt.min(2n, 3n), 2n)
See
max for selecting the larger valueSignature
declare const min: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint; }
Since v2.0.0