mirror of https://github.com/jkjoy/sunpeiwen.git
6 lines
162 B
JavaScript
6 lines
162 B
JavaScript
|
var id = 0;
|
||
|
var px = Math.random();
|
||
|
module.exports = function (key) {
|
||
|
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
||
|
};
|