MCPcopy
hub / github.com/paralleldrive/cuid2 / createCounter

Function createCounter

src/index.js:94–96  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

92};
93
94const createCounter = (count) => () => {
95 return count++;
96};
97
98// ~22k hosts before 50% chance of initial counter collision
99// with a remaining counter range of 9.0e+15 in JavaScript.

Callers 2

index-test.jsFile · 0.90
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…