debian-mirror-gitlab/core-js/internals/uid.js
2019-09-25 13:30:05 +05:30

6 lines
177 B
JavaScript

var id = 0;
var postfix = Math.random();
module.exports = function (key) {
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};