aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/internals/uid.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/internals/uid.js')
-rw-r--r--node_modules/core-js/internals/uid.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/uid.js b/node_modules/core-js/internals/uid.js
new file mode 100644
index 0000000..384c124
--- /dev/null
+++ b/node_modules/core-js/internals/uid.js
@@ -0,0 +1,6 @@
+var id = 0;
+var postfix = Math.random();
+
+module.exports = function (key) {
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
+};