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
Reference comparison #84
Comments
Thanks @Bassel-Bakr for the feedback! Here are my 2 cents on the issue:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code uses
!==
to compare old and new values.The problem is, if at least one of the values is
NaN
the condition will always betrue
We can fix the problem by using
Object.is
:The text was updated successfully, but these errors were encountered: