🚀 Feature: Also export a byEmoji object, in addition to byTitle #20
Labels
good first issue
Good for newcomers, please hop on! 🙌
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: feature
New enhancement or request 🚀
Bug Report Checklist
main
branch of the repository.Overview
Right now,
emoji-platform-data
exports abyTitle
object that maps emoji titles to their accumulated data:...but, not everyone will want to refer to emojis by the approximate Apple name / CLDR name. Many folks will want to refer to them by their emoji. Roughly:
Additional Info
It's a pity you can't do
export get byEmoji() { ... }
in ESM. Looping over all existing emojis might take some time... In my playing with this locally, it's 5-6ms. Not the worst penalty in the world. I think it's fine: the use cases foremoji-platform-data
are really more around data analysis / emoji comparisons, not performance-critical real-world consumer applications.The text was updated successfully, but these errors were encountered: