Assert that input is a number, bigint, or numeric string.
input
assertIsNumericValue(42); // does not throwassertIsNumericValue('42'); // does not throwassertIsNumericValue(42n); // does not throwassertIsNumericValue('abc'); // throws TypeError: input is not a numerical value Copy
assertIsNumericValue(42); // does not throwassertIsNumericValue('42'); // does not throwassertIsNumericValue(42n); // does not throwassertIsNumericValue('abc'); // throws TypeError: input is not a numerical value
Assert that
inputis a number, bigint, or numeric string.