Push down negation
Push the not-operator (
!) into an expression and negate it.
Why is this refactoring helpful?
Push negation into an expression can simplify code, either directly or by enabling the removal of double negation.
What do I need to consider?
When the operator is
>= the result for
NaN and nullish values can change.
- Code Assist ID (for the configuration file):
- You can configure custom keyboard shortcuts with these code action kinds:
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.