Checks if the type of value is a BigInt.
Value to be checked.
True if the value is a BigInt, false otherwise.
isBigInt(BigInt(42)); // trueisBigInt(42n); // trueisBigInt(42); // falseisBigInt("42"); // falseisBigInt(null); // falseisBigInt(undefined); // false Copy
isBigInt(BigInt(42)); // trueisBigInt(42n); // trueisBigInt(42); // falseisBigInt("42"); // falseisBigInt(null); // falseisBigInt(undefined); // false
Checks if the type of value is a BigInt.