shared-key.js 210 B

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