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