We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently it has some issues with false positives:
["str", "1", "NaN", NaN, new Date].map(isNaN); // Outputs: [true, false, true, true, false]
It tests for: undefined / null / NaN / infinity... but it seems we also need a simple typeof check:
validateNumber(["1", 2, 3], 0); // Approved, but it should fail
RuntimeTypeInspector.js/src-runtime/validateNumber.mjs
Lines 8 to 28 in da93e3c
And then I also have to fix validateNumber @todo note in validateType.
The text was updated successfully, but these errors were encountered:
kungfooman
No branches or pull requests
Currently it has some issues with false positives:
It tests for: undefined / null / NaN / infinity... but it seems we also need a simple typeof check:
RuntimeTypeInspector.js/src-runtime/validateNumber.mjs
Lines 8 to 28 in da93e3c
And then I also have to fix validateNumber @todo note in validateType.
The text was updated successfully, but these errors were encountered: