title: ES6 function destructuring assignment as a object
body: <p>First, this is a function accept a param what typeof <code>Object</code>, just like</p>
  
  <pre><code>function(object) {}
  </code></pre>
  
  <p>In ES6+, we can write like</p>
  
  <pre><code>function({ key }) {}
  </code></pre>
  
  <p>And now I want use the object, just like </p>
  
  <pre><code>function(object:{ key }) {
    console.log(key);
    console.log(object)
  }
  </code></pre>