The flat() method creates a new array with all sub-array elements ... reverse to restore input order return res.reverse(); } const arr = [1, 2, [3, 4, [5, ...
確定! 回上一頁