accounts-frontend/src/functions.js

5 lines
95 B
JavaScript
Raw Normal View History

let lastId = 0;
export function uniqueId(prefix = 'id') {
return `${prefix}${++lastId}`;
}