SOURCE

let arr = [1,2,3,{name:'lxh',age:18}]
let arrCopy = arr.slice()

console.log('arr==',arr)
console.log('arrCopy==',arrCopy)
console 命令行工具 X clear

                    
>
console