Code Monkey home page Code Monkey logo

Comments (5)

IonicaBizau avatar IonicaBizau commented on June 14, 2024

Obviously, for now I will just delete emoji.keys ❇️ But would be handy not to be there at all.

from emojilib.

muan avatar muan commented on June 14, 2024

I added keys to provide an ordered list of emojis (in order of category & it's position within a category). Object.keys returns an unordered array, instead of the order it appears in the JSON file. 😔 I know it's weird and unideal but I don't see a way around it.

from emojilib.

IonicaBizau avatar IonicaBizau commented on June 14, 2024

Maybe namespace it somehow, then? A suggestion would be to take out the keys array from emojis.json and put it into keys.json and in the js side to do:

module.exports = {
    emojis: require("./emojis")
  , keys: require("./keys")
};

Would make the things smoother. 😁

from emojilib.

muan avatar muan commented on June 14, 2024

Yup that totally make sense.

from emojilib.

IonicaBizau avatar IonicaBizau commented on June 14, 2024

@muan Can I create pull request with this change?

from emojilib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.