title: javascript function parameter with object notation
body: <p>What is the differences between</p>
  
  <pre><code>function updateSomething(item) {}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>function updateSomething({items}) {}
  </code></pre>
  
  <p>?
  item variable in the first one can be an object too, why does the second one use an object notation?
  When should I use the first one and the latter one?</p>