shared-key.js 196 B

12345678
  1. var shared = require('../internals/shared');
  2. var uid = require('../internals/uid');
  3. var keys = shared('keys');
  4. module.exports = function (key) {
  5. return keys[key] || (keys[key] = uid(key));
  6. };