title: I have seen this but not sure what it means
body: <p>I have been looking into some javascript code and noticed this not sure what it does and why you would use it</p>
  
  <pre><code>let reset = function(a, b){
      b || (b = something, b.somethingelse &amp;&amp; (b.other = b.somethingelse)) //....
      //some other code underneath
  }
  </code></pre>
  
  <p>if could help me understand that, that would be great</p>