Anonymous user
Remove duplicate elements: Difference between revisions
m
→{{header|JavaScript}}: formatting
m (→{{header|JavaScript}}: updates) |
m (→{{header|JavaScript}}: formatting) |
||
Line 373:
=={{header|JavaScript}}==
This uses the <code>===</code> "strict equality" operator, which does no type conversions (<code>4 == "4"</code> is true but <code>4 === "4"</code> is false)
<lang javascript>function unique(ary) {
// concat() with no args is a way to clone an array
|