Returns a new array with all duplicate values removed starting from the end of the input array.
uniqueRight([1, 2, 3, 2, 1]); // [3, 2, 1] Copy
uniqueRight([1, 2, 3, 2, 1]); // [3, 2, 1]
The type of the elements in the source array.
Rest
A new array with all duplicate values removed starting from the end of the input array.
Returns a new array with all duplicate values removed starting from the end of the input array.
Example