Filter an array so that duplicate items are removed 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] =&gt; [1, 2, 3, 4]
['a', 'a', 'b', 'a', 'c', 'a', 'd'] =&gt; ['a', 'b', 'c', 'd']



  I also should note that there currently aren't any open questions that meet these exact criteria.
1-byte built-ins
05AB1E (legacy)
Ù

Try it online!
Alternatively:
ê

Try it online!
APL (Dyalog Unicode)
∪

Try it online!
Jelly
Q

Try it online!
W
U

Stax
u

MATL
u

Try it online!
MathGolf
▀

Try it online!
Seriously/Actually
╔

Japt
â

Try it online!
Pyth
{

Try it online!
Husk
u

Try it online!
Pyke
}

Try it online!
Canvas
Ｄ

Try it online!