Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicate elements array javascript

let b = [];
for (i = 0; i < 5; i++){
a = prompt("Enter Name: ");
let d = b.push(a);
}
c = [...new Set(b)]
console.log(c)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #elements #array #javascript
ADD COMMENT
Topic
Name
2+2 =