DEV Community

Discussion on: Removing duplicate elements in Javascript: In a simple way! 😵

Collapse
henryjw profile image
Henry Williams • Edited on

Like @lukeshiru said, this works but is much slower. O(n^2) vs O(n). It's fine for small arrays, but would be slow as the array gets bigger.