New, not-widely-supported method 1/24. The symmetricDifference() method of a Set takes a set and returns a new set containing elements which are in either this set or the given set, but not in both.

    
    const evens = new Set([2, 4, 6, 8]);

    const squares = new Set([1, 4, 9]);

    const evensSymmetricDifferenceSquares = evens.symmetricDifference(squares);

    console.log(evensSymmetricDifferenceSquares);
    // { 1, 2, 6, 8, 9 }