title: JavaScript Promise wrapped in function or bare?
body: <p>If I'm calling a function that is a promise, do I need to do this "wrap it in another function" layer?</p>
  
  <pre class="lang-js prettyprint-override"><code>Promise
  .resolve()
  .then(()=&gt;{ // this part seems excessive
    return new Promise(resolve={
    // my function's guts
  </code></pre>
  
  <p>Can I return the new promise directly, like</p>
  
  <pre><code>Promise
  .resolve()
  .then(new Promise(resolve={
    // my function's guts
  </code></pre>