title: Do I need to return after early resolve/reject?
body: <p>Suppose I have the following code.</p>
  
  <pre><code>function divide(numerator, denominator) {
   return new Promise((resolve, reject) =&gt; {
  
    if(denominator === 0){
     reject("Cannot divide by 0");
     return; //superfluous?
    }
  
    resolve(numerator / denominator);
  
   });
  }
  </code></pre>
  
  <p>If my aim is to use <code>reject</code> to exit early, should I get into the habit of <code>return</code>ing immediately afterward as well?</p>