DEV Community

Discussion on: 3 ways to remove duplicates in an Array in Javascript

Collapse
 
rowild profile image
Robert Wildling

Shouldn't that be if (!(e in uniqueChars)) { ?