utils.js 138 B

1234567
  1. /**
  2. * Generate an unique message ID.
  3. */
  4. export const getMessageID = (() => {
  5. let messageID = 0;
  6. return () => messageID++;
  7. })();