
const array = [1, 2, 2, 3, 4, 4, 5];
const uniqueArray = Array.from(new Set(array));
console.log(uniqueArray);
{{ message }}
1 2 3 4 5 6 7 8 9 0