Function checkBigintBounds

  • Checks that the given value is between the given bounds. The bounds are both inclusive, so that they can also be legal values in the same bounds.

    Parameters

    • nameForErrorMessages: string

      the name of this value, used only for error messages

    • value: bigint

      the value to check

    • minValue: bigint

      the minimum legal value (inclusive lower bound)

    • maxValue: bigint

      the maximum legal value (inclusive upper bound)

    Returns bigint

    the value unmodified, for easy chaining

    Throws

    RangeError if the value is outside of the bounds

Generated using TypeDoc