LearnPath

javascript · beginner · ~10 min

Unique values

Export `unique(arr)` that returns a new array with duplicates removed, preserving first-seen order.

javascript editor · loading…

Output

Run to see output.