Home Reference Source

ts_temp/uniqueId.js

  1. let idCounter = 0;
  2. /**
  3. * Generates a unique ID.
  4. *
  5. * @returns {number} Returns the unique ID.
  6. */
  7. export default () => ++idCounter;