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.
The union contains all elements from both Sets, with deduplication.
Challenge: Verify that all unique elements are in the union.