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
Yasser Elgammal -
Dariel Vila -
ConFoo Developer Conference -
Marcin Janiak -
Top comments (0)