Returns a new array containing only the unique elements from the input array, preserving their order.
A new array with duplicate elements removed.
uniqueItems([1, 2, 2, 3, 1]); // → [1, 2, 3]uniqueItems(['a', 'b', 'a']); // → ['a', 'b']
Set
The type of elements in the array.
The array from which to remove duplicates.
Generated using TypeDoc
Returns a new array containing only the unique elements from the input array, preserving their order.
Returns
A new array with duplicate elements removed.
Example
Remarks
Setinternally for efficient duplicate removal.