DEV Community

Discussion on: Mastering Javascript One-Liners to Look Like a Pro

Collapse
 
jlewis profile image
Jeremy Lewis

I use this one-liner often when a dataset contains duplicates, comes in handy:
(array) => [...new Set(array)]

Collapse
 
benajaero profile image
ben ajaero

I love that!