Checks if a given value is of bigint type.
bigint
isBigInt(10n)// => trueisBigInt(BigInt(Number.MAX_SAFE_INTEGER))// => trueisBigInt(hello)// => false Copy
isBigInt(10n)// => trueisBigInt(BigInt(Number.MAX_SAFE_INTEGER))// => trueisBigInt(hello)// => false
The expected type of the value.
The value to be checked.
true if the given value is of bigint type, false otherwise.
true
false
Generated using TypeDoc v0.24.7
Checks if a given value is of
bigint
type.Example