DEV Community

Discussion on: Handling Array Duplicates Can Be Tricky

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Or just use a Set and array.from ?

Collapse
 
proticm profile image
Milos Protic

The "tricky" part is related to object duplicates. I'm not sure this approach would work with an array populated with non-primitive values