Function arrUnion

  • Returns a unique union of elements of two arrays

    Example

    arrUnion([1, 2, 3, 4, 5], [1, 3, 5, 7]);
    => [1, 2, 3, 4, 5, 7]

    Type Parameters

    • Type extends unknown[]

    Parameters

    • a: unknown[]

      First array

    • b: unknown[]

      Second array

    Returns Type

Generated using TypeDoc