### Unique values of array Use ES6 `Set` and the `...rest` operator to discard all duplicated values. ```js const unique = arr => [...new Set(arr)]; // unique([1,2,2,3,4,4,5]) -> [1,2,3,4,5] ```