New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test for valid numbers #76
Comments
I think we should go with a rule Do you want to make a PR @iangilman? |
I’m gonna say this should be 1.2.0 so 1.1.0 can finally go out. |
It's already out man! |
I definitely missed too much in two days :D |
But you helped a lot though in this version. Thank you, man! 🎉🎉 |
To be honest |
It seems to be a valid argument for |
Somebody working on this? I can take if a good first issue. |
Great! Go ahead @jgpacheco. |
Wow, things move fast around here! @imbrn Thank you for the invite; I was going to say I probably can't get to it right away, so I'm glad @jgpacheco has jumped in! :) |
Unfortunately
v8n().number().test(NaN)
returns true, which while technically correct according to JavaScript is usually not what you want.A few options:
number
return false for NaN.not.nan()
check.finite()
check which returns false for NaN, Infinity, and -Infinity.The text was updated successfully, but these errors were encountered: