source:
node_modules/es-toolkit/dist/compat/util/uniqueId.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 133 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | let idCounter = 0; |
| 2 | function uniqueId(prefix = '') { | |
| 3 | const id = ++idCounter; | |
| 4 | return `${prefix}${id}`; | |
| 5 | } | |
| 6 | ||
| 7 | export { uniqueId }; |
Note:
See TracBrowser
for help on using the repository browser.
