@nevware21/ts-utils
    Preparing search index...

    Function isBigInt

    • Checks if the type of value is a BigInt.

      Parameters

      • value: any

        Value to be checked.

      Returns value is bigint

      True if the value is a BigInt, false otherwise.

      isBigInt(BigInt(42));           // true
      isBigInt(42n); // true

      isBigInt(42); // false
      isBigInt("42"); // false
      isBigInt(null); // false
      isBigInt(undefined); // false