javascript
Published on January 26, 2024By DeveloperBreeze
const numbers = [1, 2, 2, 3, 4, 4, 5];
const uniqueNumbers = [...new Set(numbers)];
console.log('Unique Numbers:', uniqueNumbers);
const numbers = [1, 2, 2, 3, 4, 4, 5];
const uniqueNumbers = [...new Set(numbers)];
console.log('Unique Numbers:', uniqueNumbers);
Comments
Please log in to leave a comment.