Answers for "Javascript removing duplicates in array"

0

Javascript removing duplicates in array

const array = [1, 1, 2, 3, 5, 5, 1]
const uniqueArray = [...new Set(array)];

console.log(uniqueArray); // Output: [1, 2, 3, 5]
Posted by: Guest on September-14-2021

Code answers related to "Javascript removing duplicates in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language