unionintermediateconst a = new Set([1, 2])
const b = new Set([2, 3])
const all = a.union(b)
console.log([...all]) // β [1, 2, 3]Use Set.union() to combine two sets into a new set containing all unique values.
Union of disjoint Sets contains all elements from both.
Challenge: Verify union of Sets with no common elements.