const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); // Result: [1, 2, 3, 5]
To learn more about arrays in JavaScript, visit MDN
const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];
console.log(uniqueArray); // Result: [1, 2, 3, 5]
To learn more about arrays in JavaScript, visit MDN
For further actions, you may consider blocking this person and/or reporting abuse
Sandy Galabada -
Safdar Ali -
Sotiris Kourouklis -
Idris Gadi -
Top comments (0)