8 lines
138 B
JavaScript
8 lines
138 B
JavaScript
|
/**
|
||
|
* Generate an unique message ID.
|
||
|
*/
|
||
|
export const getMessageID = (() => {
|
||
|
let messageID = 0;
|
||
|
return () => messageID++;
|
||
|
})();
|