Destructuring (aka destructuring assignmen) is one of the approved proposals for the next version of ECMAScript (Harmony). Destructuring is already supported by SpiderMonkey and Opera (Carakan). var [x, y] = [0, 1]; assertEquals(0, x); assertEquals(1, y);
This is also in the latest draft of the ES6 spec http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts
Olliver, can this be closed now?
Yeah, JSC has supported destructing for a while now. Closing.