Filters an array to include only distinct elements, removing duplicates.
The input array whose distinct elements are to be retrieved.
A new array containing only the distinct elements from the input array.
Filters an array to include only distinct elements, removing duplicates.