DEV Community

Arpita Guria
Arpita Guria

Posted on

How to remove duplicates from an array?

const unique = [...new Set(arr)];

Top comments (0)