• Given two arrays, returns true if any elements intersect

    Type Parameters

    • T
    • K extends string | number | symbol

    Parameters

    • listA: readonly T[]
    • listB: readonly T[]
    • Optional identity: ((t) => K)
        • (t): K
        • Parameters

          Returns K

    Returns boolean