Returns the unique elements of an array.

  • Type Parameters

    • T

    Parameters

    • arr: T[]

      The array

    Returns T[]