arktypea
arktype11mo ago
3 replies
sbs

string.numeric.parse accepts empty strings and returns a NaN

console.log(type("string.numeric.parse")(""));

this does not fail as I would expect - it returns a
NaN
. Is that the expected behavior? What is a nice way to achieve the behavior I'm looking for?
Was this page helpful?