title: Destructuring an array and its properties at the same time
body: <p>Is it possible to destructure elements of an array while also destructuring some of its properties as an object ?</p>
  
  <p>For example, the following code compiles but doesn't give the expected result :</p>
  
  <pre class="lang-js prettyprint-override"><code>const array = [1, 2, 3]
  array.myvalue = 'test'
  
  function f([a, b, ...{ myvalue }]) {
    console.log(a, b, myvalue);
  }
  
  f(array)
  </code></pre>
  
  <p>Output :</p>
  
  <pre><code>1 2 undefined
  </code></pre>