Read More: http://es6.ruanyifeng.com/#docs/destructuring Array “模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值: Exp 1: var [head, ...tail] = [1, 2, 3, 4]; console.log(head); console.log(tail); // [2, 3, 4] Exp 2: var [foo, [[bar], baz]] = [1, [[2], 3]]; foo bar ba…