Deduplicate Array JavaScript

function uniq(a) {
   return Array.from(new Set(a));
}
Combative Curlew