Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array unique values

var arr = [55, 44, 65,1,2,3,3,34,5];
var unique = [...new Set(arr)]

//just  var unique = new Set(arr) wont be an array
 
PREVIOUS NEXT
Tagged: #javascript #array #unique #values
ADD COMMENT
Topic
Name
8+1 =