title: Return object from arrow function
body: <p>I want to output object from arrow function (in a short form), so full code is: </p>
  
  <pre><code>somemethod(function(item) {
     return {id: item.id};
  })
  </code></pre>
  
  <p>with arrow functions it's: </p>
  
  <pre><code>somemethod((item) =&gt; {
     return {id: item.id};
  })
  </code></pre>
  
  <p>and now short form should be something like:</p>
  
  <pre><code>somemethod(item = &gt; {id: item.id} )
  </code></pre>
  
  <p>that does not work, as well as this one: </p>
  
  <pre><code>somemethod(item = &gt; {{id: item.id}} )
  </code></pre>
  
  <p>only one solution I found for now is to use create Object notation: </p>
  
  <pre><code>somemethod(item = &gt; new Object({id: item.id}) )
  </code></pre>
  
  <p>is there another way?</p>