6 lines
162 B
JavaScript
Raw Normal View History

2019-09-13 11:27:52 +07:00
var id = 0;
var px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};