fedibird-fe/app/javascript/mastodon/utils/uniq.js
2021-08-12 07:08:18 +09:00

3 lines
95 B
JavaScript

export const uniq = array => {
return array.filter((x, i, self) => self.indexOf(x) === i)
};