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

8 lines
196 B
JavaScript

var shared = require('../internals/shared');
var uid = require('../internals/uid');
var keys = shared('keys');
module.exports = function (key) {
return keys[key] || (keys[key] = uid(key));
};