const myArray = [2,5,6,2,2,4,5,3,3]; const uniqueArray = [...new Set(myArray)]; console.log(uniqueArray);