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
Last updated on
Edit this page