Returns a new array containing only the unique elements from the input array, preserving their original order.
The array from which to remove duplicate values.
A new array with duplicates removed.
const numbers = [1, 2, 2, 3, 4, 4, 5];const uniqueNumbers = ArrayDistinct(numbers); // [1, 2, 3, 4, 5] Copy
const numbers = [1, 2, 2, 3, 4, 4, 5];const uniqueNumbers = ArrayDistinct(numbers); // [1, 2, 3, 4, 5]
4.0.0
2022-07-02
Returns a new array containing only the unique elements from the input array, preserving their original order.