Possible to assign to multiple variables from an array?
<p>Is it a standard way to assign to multiple variables from an array in JavaScript?
In Firefox and Opera, you can do:</p>

<pre><code>var [key, value] = "key:value".split(":");
alert(key + "=" + value); // will alert "key = value";
</code></pre>

<p>But it doesn't work in IE8 or Google Chrome.</p>

<p>Does anyone know a nice way to do this in other browsers without a tmp variable?</p>

<pre><code>var tmp = "key:value".split(":");
var key=tmp[0], value=tmp[1];
</code></pre>

<p>Is this something that will come in an upcoming JavaScript version, or just custom implementation in FF and Opera?</p>
