Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicates from array js

const myArray = [2,5,6,2,2,4,5,3,3];

const uniqueArray = [...new Set(myArray)];

console.log(uniqueArray);
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #array #js
ADD COMMENT
Topic
Name
3+6 =