if..else vs if(){return}
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1820839/using-return-instead-of-else-in-javascript">Using return instead of else in Javascript</a>  </p>
</blockquote>



<p>In the following example - given that the return value isn't of any importance - is there a reason to prefer method over the other?</p>

<pre><code>// Method 1
function (a, b) {
  if (a == b){
    // I'm just interested in
    // the stuff happening here
  } else {
    // or here
  }
// return true;
}

// Method 2
function (a, b) {
  if (a == b){
    // I'm just interested in
    // the stuff happening here
    return true;
  }
  // or here
  return true;
}
</code></pre>
