How to use the emoji-datasource.find function in emoji-datasource

To help you get started, we’ve selected a few emoji-datasource examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keybase / client / shared / chat / conversation / messages / react-button / emoji-picker / data.tsx View on Github external
(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
  },
  {}

emoji-datasource

Emoji data and images

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis