effect-io-ai

Package: effect
Module: BigInt

BigInt.isGreaterThanOrEqualTo

Returns a function that checks if a given bigint is greater than or equal to the provided one.

When to use

Use to test whether one bigint is greater than or equal to another.

Example (Checking greater-than-or-equal comparisons)

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

assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false)
assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true)
assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true)

Signature

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

Source

Since v4.0.0