const set = new Set(['foo', 'bar', 'baz', 'foo']); Array.from(set); // [ "foo", "bar", "baz" ]
Array.from(arrayLike[, mapFn[, thisArg]])