IOTConnect-Web/node_modules/fast-unique-numbers/build/es2019/factories/cache.js
2024-05-09 09:49:52 +08:00

7 lines
218 B
JavaScript

export const createCache = (lastNumberWeakMap) => {
return (collection, nextNumber) => {
lastNumberWeakMap.set(collection, nextNumber);
return nextNumber;
};
};
//# sourceMappingURL=cache.js.map