depth=Infinity ,返回的陣列變成一維. array.flat(Infinity) // [1, 2, 3, 4, 5, 6, 7, 8, 9]. 原陣列有空位,flat方法會消除空位,即使是flat(0)也 ...
確定! 回上一頁