Function isBigInt

  • typeof "bigint" alias.

    Example

    isBigInt(1n); // true
    isBigInt(1); // false

    Parameters

    • input: unknown

    Returns input is bigint

    true if the given value is a bigint, false otherwise.