title: minifcation of a if expression, gives unexpected output
body: <p>using a javascript minifier <a href="https://javascript-minifier.com/" rel="nofollow">here</a>, if found </p>
  
  <pre><code>if ($(this).val()) {
      idCat = $(this).val();
  }
  </code></pre>
  
  <p>gets transformed into this expression</p>
  
  <pre><code>$(this).val()&amp;&amp;(idCat=$(this).val());
  </code></pre>
  
  <p>What is the rationale behind this tranformation?</p>