对于二维数组直接使用[].concat(...arr)
const arr = [ 'a', [ 'b', 2 , {c : 132} ], [{d:123}, {f:20},'fsd'], [6, 8]]
const arr2 = [].concat(...arr)
对于二维数组直接使用[].concat(...arr)
const arr = [ 'a', [ 'b', 2 , {c : 132} ], [{d:123}, {f:20},'fsd'], [6, 8]]
const arr2 = [].concat(...arr)