Package: effect
Module: BigInt
Returns true if the first argument is greater than the second, otherwise false.
When to use
Use to test whether one bigint is strictly greater than another.
Example (Checking greater-than comparisons)
import { BigInt } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(BigInt.isGreaterThan(2n, 3n), false)
assert.deepStrictEqual(BigInt.isGreaterThan(3n, 3n), false)
assert.deepStrictEqual(BigInt.isGreaterThan(4n, 3n), true)
Signature
declare const isGreaterThan: { (that: bigint): (self: bigint) => boolean; (self: bigint, that: bigint): boolean; }
Since v4.0.0