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