Home > shorts > Avoid Negative Conditionals
Avoid Negative Conditionals
Negatives are just a bit harder to understand than positives. So, when possible, conditionals should be expressed as positives.
❌ if(!notStarted) {
return...
}
✅ if(started) {
return ...
}