UNPKG

292 BJavaScriptView Raw
1'use strict';
2var uncurryThis = require('../internals/function-uncurry-this');
3
4var id = 0;
5var postfix = Math.random();
6var toString = uncurryThis(1.0.toString);
7
8module.exports = function (key) {
9 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
10};