-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
proposal: change checks for undefined #11363
Comments
Nice idea. But just to be sure, could you provide some references or tell on which systems |
It failed on a local setup with some Node versions with foundation-sites 6.4.3 (not sure if 6 or 8 or 10, was on Friday at work). |
https://stackoverflow.com/a/4725697/4317384
https://stackoverflow.com/a/4726198/4317384
|
Ok LGTM. Label it as a fix if there is a particular issue you can reproduce and resolve. As a style or refactor otherwise (I'm not sure what would be the more appropriate). |
Description
Currently we have checks like
val === undefined
which is not correct in generalCorrect would be
typeof val === 'undefined'
as this could fail on some systems.Should we change this to use
typeof
?Possible Solution
Use
typeof
check.Checklist (all required):
The text was updated successfully, but these errors were encountered: