home

Unique values from array

Word count icon

5 words

Reading time icon

1 minutes

Set is your friend here

JavaScript icon
var duplicateArrya = [...new Set([1, 2, 3, 3])]
>> [1, 2, 3]