Converts a NumLike value to a Num (bigint).
The value to convert, which can be a string, number, bigint, or HexLike.
A Num (bigint) representing the value.
const num = numFrom("12345"); // Outputs 12345nconst numFromHex = numFrom("0x3039"); // Outputs 12345n Copy
const num = numFrom("12345"); // Outputs 12345nconst numFromHex = numFrom("0x3039"); // Outputs 12345n
Converts a NumLike value to a Num (bigint).