DEV Community

Discussion on: Removing duplicates from an array

 
assuncaocharles profile image
Charles Assunção

Not really, I am keeping the same entry as the original array and not converting it to a string, what can be even trickier if your elements is an object or another thing. Returning an array of strings you are not preserving the data.