We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can use simple evidence to remove some null checks. Code like this:
if (null != n && "function" == typeof n.CompareTo) return n.CompareTo(t);
Could be simplified into this, with null check completely removed.
if ("function" == typeof n.CompareTo) return n.CompareTo(t);
The text was updated successfully, but these errors were encountered:
The check is not redundant − at least not in Firefox:
var n = null; typeof n.CompareTo Uncaught TypeError: n is null
var n = null; typeof n.CompareTo
var n = null;
typeof n.CompareTo
Uncaught TypeError: n is null
Sorry, something went wrong.
No branches or pull requests
We can use simple evidence to remove some null checks.
Code like this:
Could be simplified into this, with null check completely removed.
The text was updated successfully, but these errors were encountered: