3 lines
95 B
JavaScript
3 lines
95 B
JavaScript
export const uniq = array => {
|
|
return array.filter((x, i, self) => self.indexOf(x) === i)
|
|
};
|