sbs
sbs
Aarktype
Created by sbs on 3/23/2025 in #questions
string.numeric.parse accepts empty strings and returns a NaN
console.log(type("string.numeric.parse")(""));
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?
4 replies