UNPKG

250 BJavaScriptView Raw
1var map = {};
2export default (function (prefix) {
3 prefix = prefix || 'g';
4 if (!map[prefix]) {
5 map[prefix] = 1;
6 }
7 else {
8 map[prefix] += 1;
9 }
10 return prefix + map[prefix];
11});
12//# sourceMappingURL=unique-id.js.map
\No newline at end of file