MES手机端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
292 B

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