const sampleValues = [1, 4, 5, 2, 'a', 'e', 'b', 'e', 2, 2, 4]; const uniqueValues = [...new Set(sampleValues)]; console.log(uniqueValues); //[1, 4, 5, 2, "a", "e", "b"]