Private constructorStatic assertVerify the type of bigint given, throwing if it does not match.
Given a bigint and a "type", test to see if the argument is of that type.
Mainly used for parameter validation, when the type bigint is not specific enough.
The acceptable "types", which are not mutually exclusive, are members of NumericType:
NumericType.INTEGER : always matches: BigInts are always integersNumericType.NATURAL : synonym of NumericType.NONNEGATIVENumericType.WHOLE : synonym of NumericType.POSITIVENumericType.FLOAT : never matches: BigInts are never non-integersNumericType.POSITIVE : the bigint is strictly greater than 0nNumericType.NEGATIVE : the bigint is strictly less than 0nNumericType.NONPOSITIVE : the bigint is less than or equal to 0nNumericType.NONNEGATIVE : the bigint is greater than or equal to 0nNumericType.NONZERO : the bigint is not equal to 0nNumericType.FINITE : always matches: BigInts are always finiteNumericType.INFINITE : never matches: BigInts are never finiteundefiend): always matchesIf the argument matches the described type, this method returns void instead of true.
If the argument does not match, this method throws an error instead of returning false.
This pattern is helpful where an error message is more descriptive than a boolean.
the argument to test
Optional type: NumericTypeone of the string literals listed above
if the argument does not match the described type
Additional static members for the native BigInt class.
Does not extend the native BigInt class.