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

    
    const odds = new Set([1, 3, 5, 7, 9]);

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

    const oddsIntersectionSquares = odds.intersection(squares);

    console.log(oddsIntersectionSquares);
    // { 1, 9 }