-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix valid + falsy propvalues #563
Conversation
…versal’s `instHasProperty`.
bd0ed7d
to
2d9712a
Compare
is |
@nfcampos good call, i'll cover that also. |
and while you're at it |
Are |
Doesn't React strip out null properties? |
only |
Looks like it doesn't strip out |
Ready for a stamp! |
return propValue; | ||
} | ||
|
||
if (is('NaN', propValue)) { |
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.
any reason this isn't propValue !== 'NaN'
?
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 mean ===
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'll change it; i'd been using a literal NaN
and then updated it to take in a string
d00357b
to
58c58ca
Compare
d43c1c2
to
0314e2f
Compare
LGTM |
Fixes #562.
I also consolidated some code.