differenceintermediateconst a = new Set([1, 2, 3, 4])
const b = new Set([3, 4, 5])
const diff = a.difference(b)
console.log([...diff]) // β [1, 2]Use Set.difference() to get elements in the first set that are not in the second.
When B is empty, difference equals A.
Challenge: Verify that A.difference(empty) equals A.