Generates a unique entity ID.
Auto-incremented counter-based ID generation. IDs are unique within a single application session. Use resetEntityIdCounter() for testing.
resetEntityIdCounter()
A unique string identifier in format "entity_{number}".
const id1 = generateEntityId(); // "entity_1"const id2 = generateEntityId(); // "entity_2" Copy
const id1 = generateEntityId(); // "entity_1"const id2 = generateEntityId(); // "entity_2"
Generates a unique entity ID.
Auto-incremented counter-based ID generation. IDs are unique within a single application session. Use
resetEntityIdCounter()for testing.