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
Fourhtyoz -
Trevoir Williams -
Shilleh -
Charlotte Towell -
Top comments (0)