#降维
let arr = [1, {}, [3, [4]] ]; let arr1 = []; arr1 = arr.flat(Infinity); console.log(arr1);
npm i liuxin-1811a
1
1.0.1
ISC
918 B
3
3 years ago