title: arrow function shorthand for returning an object
body: <p>Im using the shortened ES6 arrow function notation to write my function body like this</p>
  
  <pre><code>const funcName = (...args) =&gt; something
  </code></pre>
  
  <p>I'm not even using a single curly bracket since my function body has just 1 return statement.</p>
  
  <p>But say I want to return an object from this function, I would have to do:</p>
  
  <pre><code>const funcName = (...args) =&gt; {key:val}
  </code></pre>
  
  <p>The problem here is babel is assuming that the stuff inside the curly brackets is a function body - not an object - how to make it think that it is indeed an object??</p>