Function arrCross

  • Returns the common elements from two arrays

    Example

    arrCross([1, 2, 3, 4], [2, 3]);
    => [2, 3]

    Type Parameters

    • Type extends unknown[]

    Parameters

    • a: unknown[]

      First array

    • b: unknown[]

      Second array

    Returns Type

Generated using TypeDoc