The curious case of if-not(marcel.is) |
The curious case of if-not(marcel.is) |
if (!(input.command === "foo" && isValid(input))) {
...
}
Which IMHO is the least comprehensible.You can flip the negation by swapping the if/else blocks, but only if there is an else. Then you also get into questions about whether or not it matters which block is on top.