DEV Community

Discussion on: uuid in JavaScript.

Collapse
 
dreddergun profile image
Vyguzov Aleksandr

I can't figure out why do you need a chain with counters? Why you didn't just write
let counter: number = 0;
and further increment inside returning callback?
counter = counter++;