array —> set let array = [1, 2, 3, 4]; let set = new Set(array); set —> array let demo = new Set([1, 2, 3, 4]); Array.from(demo);