js 数组分解 解构

// ES5
a = list[0], rest = list.slice(1)
// ES6
[a, ...rest] = list
原文地址:https://www.cnblogs.com/mengfangui/p/9494758.html