That's minification. The actual source code almost certainly does `if (a) { ... }`, but the minifier will shorten that into `a&&...`, thereby saving multiple bytes. Accumulate this over different if-clauses, and you're looking at serious savings.
false && console.log('foo'); //false
if(false){ console.log('foo') }; //undefined