• Returns a list of elements that exist in both arrays

    Example

    intersect([1, 2, 3], [4, 3, 2]); // [2,3]
    

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • array: unknown[]

    Returns T[]

Generated using TypeDoc