Package: effect
Module: BigInt
Checks whether a value is a bigint.
When to use
Use to validate unknown input and narrow it to bigint.
Example (Checking for bigints)
import { BigInt } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(BigInt.isBigInt(1n), true)
assert.deepStrictEqual(BigInt.isBigInt(1), false)
Signature
declare const isBigInt: (u: unknown) => u is bigint
Since v2.0.0