ES6 数组新增方法

扩展运算符:扩展运算符(spread)是三个点(...)。它好比 rest 参数的逆运算,将一个数组转为用逗号分隔的参数序列。 console.log(...) // 1 2 3 console.log(1, ..., 5) // 1 2 3 4 5 //
ES6 数组新增方法