Published
- 1 min read
javascript array unique values
The solution for this is noted below
javascript array unique values
Solution
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
Try other methods by searching on the site. That is if this doesn’t work