effect-io-ai

Package: effect
Module: BigInt

BigInt.min

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

Signature

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

Source

Since v2.0.0