Deduplicate массив JavaScript
function uniq(a) {
return Array.from(new Set(a));
}
Combative Curlew
function uniq(a) {
return Array.from(new Set(a));
}