• Filters an array to include only distinct elements, removing duplicates.

    Type Parameters

    • T

    Parameters

    • value: T[]

      The input array whose distinct elements are to be retrieved.

    Returns T[]

    A new array containing only the distinct elements from the input array.