Skip to content
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

[Issue]: isNumber ignores javascript values: -Infinity & Infinity and returns false #32

Open
rehman-00001 opened this issue Oct 1, 2019 · 0 comments

Comments

@rehman-00001
Copy link
Contributor

Couple of issues I encountered when using this library in my project:

isNumber - returns false for javascript numeric values: -Infinity & Infinity and for numbers created using new Number(..) wrapper;

isBoolean & isString returns false for objects created using new keywords.
i.e., new String('asdf') & new Boolean()

@flexdinesh, please let me know if this need to be handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant