-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Ensure that when we check typeof x == 'number' we also check instanceof Number #5752
Conversation
Maybe we should add a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @benmccann, we could refactor this method in helpers.core.js with associated unit tests to prevent regressions.
1e69c98
to
24ac870
Compare
I created the helper function and used it where possible. I had the helper function return false for non-numeric types. This means I couldn't use it in |
I approve this PR. GitHub is having trouble right now, so I can use the review functionality. Go ahead and merge when you're ready |
This is merged, twice ... GitHub have some trouble indeed. Closing manually to prevent a third merge. |
This should resolve #3124 but I still need to write some tests