diff --git a/app/javascript/mastodon/features/emoji/emoji_utils.ts b/app/javascript/mastodon/features/emoji/emoji_utils.ts index 41745318352..ce30e711ade 100644 --- a/app/javascript/mastodon/features/emoji/emoji_utils.ts +++ b/app/javascript/mastodon/features/emoji/emoji_utils.ts @@ -209,16 +209,15 @@ function uniq(arr: []) { }, []); } -/* eslint-disable */ - -// @ts-expect-error -function intersect(a, b) { +function intersect(a: [], b: []) { const uniqA = uniq(a); const uniqB = uniq(b); - return uniqA.filter((item) => uniqB.indexOf(item) >= 0); + return uniqA.filter((item) => uniqB.includes(item)); } +/* eslint-disable */ + // @ts-expect-error function deepMerge(a, b) { let o = {};