Functions
assertIsStringifiedBigInt
assertIsStringifiedBigInt(
putativeBigInt
):asserts putativeBigInt is StringifiedBigInt
From time to time you might acquire a string, that you expect to parse as a BigInt
, from an
untrusted network API or user input. Use this function to assert that such an arbitrary string
will in fact parse as a BigInt
.
Parameters
Parameter | Type |
---|---|
putativeBigInt | string |
Returns
asserts putativeBigInt is StringifiedBigInt