title: Why I get "Invalid left-hand side in assignment"?
body: <p>There is code:</p>
  
  <pre><code>function search(list, q){
    var result = {};
    for(let id in list)(
      (!q.id    || (id == q.id)) &amp;&amp;
      (!q.name  || (list[id].name.search(q.name) &gt; -1)) &amp;&amp;
      result[id] = list[id]
    );
  
    return result;
  }
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Uncaught ReferenceError: Invalid left-hand side in assignment    script.js:4
  </code></pre>
  
  <p>Why "&amp;&amp;" is wrong?</p>