Simplify Boolean Expression

How to simplify a complex boolean expression in WebStorm.

WebStorm will warn you if a boolean expression has any unnecessary parts that can be simplified. You can then press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), and WebStorm will simplify the expression for you.


Related Resources

Add New Dependencies
WebStorm can help you add a new dependency.
Add console.log Faster
Use Postfix Completion to quickly add console.log.
Create Arrow Functions in One Click
WebStorm can help you add arrow functions to your code.