• Intersect the elements of two arrays, returns a new array with only the elements present in both arrays.

    Type Parameters

    • T

    Parameters

    • source: readonly T[]

      source array

    • target: readonly T[]

      Target array

    Returns T[]