jshint/jshint-next — Issue #2: Option to allow short-circuit expressions
Author: antonkovalyov
Created: 2012-03-04 02:18:39+00:00
State: open

From https://github.com/jshint/jshint/issues/411:

```javascript
var x=true, y;
function doit() {
y=true;
}
function doit2() {
y=false;
}
// here's the sketchy construct
x && doit();

// equivalent to
if (x) {
doit();
}

// another version
x ? doit() : doit2();

// equivalent to
if (x) {
doit();
} else {
doit2();
}
```