JavaScript 1.7 允许解构:
[a, b] = [1, 2] // var a = 1, b = 2;
有没有办法让数组的其余部分和头部像:Clojure
(let [[head & xs] [1 2 3]] (print head xs)) ; would print: 1 [2 3]
Python
a, b* = [1, 2, 3]
参考: https ://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.7#Using_JavaScript_1.7