Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(res: {[K in string]: EmojiData}, emoji: any) => {
const shortName = emoji.id
const emojiFromEmojiData = emojidata.find(e => e.short_name === shortName)
if (emojiFromEmojiData) {
res[shortName] = emojiFromEmojiData
}
return res
},
{}