diff --git a/src/index.ts b/src/index.ts index a878518..d47aa63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,9 +47,9 @@ function idFactory(start = 1) { let id = start; return function nextId() { - const nextId = id; + const _nextId = id; id += 1; - return nextId; + return _nextId; }; }