UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (8 loc) 230 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); let idCounter = 0; function uniqueId(prefix = '') { const id = ++idCounter; return `${prefix}${id}`; } exports.uniqueId = uniqueId;