Checks if the given value is an BigInt.
Syntax
TypeScript
import { isBigInt } from '@opentf/std'; isBigInt(val: unknown): val is bigint
Examples
TypeScript
isBigInt(1) //=> false isBigInt(1n) //=> true
Checks if the given value is an BigInt.
import { isBigInt } from '@opentf/std'; isBigInt(val: unknown): val is bigint
isBigInt(1) //=> false isBigInt(1n) //=> true