@pleisto/active-support
    Preparing search index...

    Variable intersectsConst

    intersects: <T, K extends string | number | symbol>(
        listA: readonly T[],
        listB: readonly T[],
        identity?: (t: T) => K,
    ) => boolean

    Given two arrays, returns true if any elements intersect

    Type declaration

      • <T, K extends string | number | symbol>(
            listA: readonly T[],
            listB: readonly T[],
            identity?: (t: T) => K,
        ): boolean
      • Type Parameters

        • T
        • K extends string | number | symbol

        Parameters

        • listA: readonly T[]
        • listB: readonly T[]
        • Optionalidentity: (t: T) => K

        Returns boolean