拓展运算符
// 1.数组合并
// const kuaizi = ['王太利','肖扬']
// const fenghuang = ['曾毅','玲花']
// // const zxxpg = kuaizi.concat(fenghuang)
// const zxxpg = [...kuaizi,...fenghuang]
// console.log(zxxpg) // ['王太利','肖扬','曾毅','玲花']
// 2.数组的克隆
const sanzhihua = ['E','G','M']
// 浅拷贝
const sanyecao = [...sanzhihua]
console.log(sanyecao) //(3) ["E", "G", "M"]
// 3.将伪数组转为真正的数组
const divs = document.querySelectorAll('div')
const divArr = [...divs]
console.log(divArr);// arguments 也可以转为真正的数组 --> (3) [div, div, div]