Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find duplicates array javascript

let arr = [1, 7, 8, 9, 10, 20, 33, 0, 20, 7, 1]
console.log([... new Set(arr)]
// Output : [1, 7, 8, 9, 10, 20, 33, 0]
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #find #duplicates #array #javascript
ADD COMMENT
Topic
Name
5+1 =