IOTConnect-Web/node_modules/fast-unique-numbers/build/es2019/factories/cache.js

7 lines
218 B
JavaScript
Raw Permalink Normal View History

2024-05-09 01:49:52 +00:00
export const createCache = (lastNumberWeakMap) => {
return (collection, nextNumber) => {
lastNumberWeakMap.set(collection, nextNumber);
return nextNumber;
};
};
//# sourceMappingURL=cache.js.map