Javascript de matriz deduplicado

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