Joins multiple arrays into a single array, removing duplicates and filtering out null values.

  • Type Parameters

    • T = string

      The type of values in the array.

    Parameters

    • Rest...arr: (null | T | T[])[] | (null | T | T[])[][]

      The arrays to join.

    Returns T[]

    • The joined array.