title: Resolving promises from ES6 Arrow Functions
body: <p>Reading the docs as I understand it in ES6 the meaning of:</p>
  
  <pre><code>foo =&gt; someFun(foo); 
  </code></pre>
  
  <p>is equivalent to:</p>
  
  <pre><code>foo =&gt; { return someFun(foo); }
  </code></pre>
  
  <p>I'm returning a new Promise and within that code using arrow functions to invoke the resolve &amp; reject methods, e.g.</p>
  
  <pre><code>return new Promise(function(resolve, reject)
  {
      someFunThatReturnsAPromise()
      .then(data =&gt; resolve(data))
      .catch(err =&gt; reject(err));
  });
  </code></pre>
  
  <p>As such is the code in the then actually,</p>
  
  <pre><code>.then(data =&gt; return resolve(data))
  </code></pre>
  
  <p>If so, does it matter that the result of resolve (of which I'm not sure of the type of value) and should I instead be slightly less terse and write it using {} to prevent the implicit return</p>
  
  <pre><code>.then(data =&gt; { resolve(data); })
  </code></pre>