concat
一般我们用于拼接数组(或者拼接string),参数可以是字符串、数字、对象或者数组
let arr = [1,2,3]
arr.concat([2,3,4,5,6],1234,5678,90,24,[22,[2345]])
let arr = [1,2,3]
arr.concat(...[2,3,4,5,6],1234,5678,90,24,[22,...[2345]],{
a:1},'aaa',true)
一般我们用于拼接数组(或者拼接string),参数可以是字符串、数字、对象或者数组
let arr = [1,2,3]
arr.concat([2,3,4,5,6],1234,5678,90,24,[22,[2345]])
let arr = [1,2,3]
arr.concat(...[2,3,4,5,6],1234,5678,90,24,[22,...[2345]],{
a:1},'aaa',true)