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
numbro.validate(0, {}); result: false expected: true
https://github.com/BenjaminVanRyseghem/numbro/blob/2.2.0/src/validating.js#L251 I think unformatter.unformat will return undefined if unformat fails. So I think I should fix the above code to return value !== undefined;, but I want more help with this library in detail
unformatter.unformat
return value !== undefined;
The text was updated successfully, but these errors were encountered:
0 is a valid input
9db3948
Fix #541
db8ec58
Successfully merging a pull request may close this issue.
numbro.validate(0, {});
result: false
expected: true
https://github.com/BenjaminVanRyseghem/numbro/blob/2.2.0/src/validating.js#L251
I think
unformatter.unformat
will return undefined if unformat fails.So I think I should fix the above code to
return value !== undefined;
, but I want more help with this library in detailThe text was updated successfully, but these errors were encountered: