unique-id.js 330 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var map = {};
  4. exports.default = (function (prefix) {
  5. prefix = prefix || 'g';
  6. if (!map[prefix]) {
  7. map[prefix] = 1;
  8. }
  9. else {
  10. map[prefix] += 1;
  11. }
  12. return prefix + map[prefix];
  13. });
  14. //# sourceMappingURL=unique-id.js.map