1 line of code: How to remove all duplicates from an Array
const removeDuplicates = arr =&gt; [...new Set(arr)];         Enter fullscreen mode            Exit...
Tags: javascript, webdev, productivity, codequality