Unique array with Set and ...
via https://twitter.com/addyosmani/status/952805052086824960
by sfoster
JavaScript
const uniqueArray = arr => [...new Set(arr)];
let uniq = uniqueArray(["one", "one", "two", "two", "three"]); // returns ["one", "two", "three"]
console.log(uniq);