mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
13 lines
308 B
JavaScript
13 lines
308 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.createCache = void 0;
|
|
const createCache = lastNumberWeakMap => {
|
|
return (collection, nextNumber) => {
|
|
lastNumberWeakMap.set(collection, nextNumber);
|
|
return nextNumber;
|
|
};
|
|
};
|
|
exports.createCache = createCache; |