title: Javascript. Assign array values to multiple variables?
body: <pre><code>var a,b,c;
  var arr = [1,2,3];
  [a,b,c] = arr;
  </code></pre>
  
  <p>this code works perfectly in Firefox resulting a=1, b=2 and c=3,<br>
  but it doesn't work in Chrome. Is it a Chrome bug or<br>
  it is not valid javascript code? (I failed to find it in javascript references)  </p>
  
  <p>How can I modify this code to make it suitable for Chrome, with minimum damage to it?<br>
  (I don't really like to write a = arr[0]; b = arr[1]... or the same with arr.shift() all the time)<br><br></p>
  
  <p>P.S. this is just an example code, in real code<br> 
  I get the arr array from somewhere outside my code</p>