title: Get first and last elements in array, ES6 way
body: <p><code>let array = [1,2,3,4,5,6,7,8,9,0]</code></p>
  
  <p>Documentation is something like this</p>
  
  <p><code>[first, ...rest] = array</code> will output 1 and the rest of array</p>
  
  <p>Now is there a way to take only the first and the last element <code>1 &amp; 0</code> with <code>Destructuring</code> </p>
  
  <p>ex: <code>[first, ...middle, last] = array</code></p>
  
  <p>I know how to take the first and last elements the other way but I was wondering if it is possible with es6</p>