In the shortest amount of code in any programming language, filter out the duplicate items in an array of which the order is irrelevant.
Here are some test cases:
[1, 2, 2, 3, 1, 2, 4] => [1, 2, 3, 4]
['a', 'a', 'b', 'a', 'c', 'a', 'd'] => ['a', 'b', 'c', 'd']
I also should note that there currently aren't any open questions that meet these exact criteria.
[1, 2] => [2, 1]
being valid. I'd also suggest tweaking the title to something that doesn't imply order preservation. Perhaps involving the phrase "set of unique items" \$\endgroup\$