from typing import List
from typing import Set


def get_jurisdiction_common_members(a: List[int], b: List[int]) -> Set[int]:
    """
    Compares two arrays of integers, and returns a set of unique common members
    :param List[int] a: An array you want to compare against
    :param List[int] b: The other array you want to compare against
    :return Set[int]:
    """
    a_set = set(a)
    b_set = set(b)

    if a_set & b_set:
        return a_set & b_set
    else:
        return set()