To only see the duplicate values in JavaScript array without removing them, use the filter method ... return [...new Set(arr.filter((elem, idx, arr) => arr.
確定! 回上一頁