例一:. const duplicate = [1, 1, 2, 3, 4, 4, 5, 5, 5] // 方法一 const result = [] duplicate.forEach((num) => { if (!result.includes(num)) ...
確定! 回上一頁