Returns a single instance of each item in the iterable or asynchronous iterable.
unique([1, 2, 3, 4, 1, 2, 3, 4]); // [1, 2, 3, 4] Copy
unique([1, 2, 3, 4, 1, 2, 3, 4]); // [1, 2, 3, 4]
Iterable to be filtered.
Generators with a single instance of each item of the iterable.
Returns a single instance of each item in the iterable or asynchronous iterable.
Example