Function unique

Creates a duplicate-free version of an array.

unique([1, 1, 2, 1, 3, 4, 4, 5]);
// => [1, 2, 3, 4, 5]