@morjs/runtime-web
Version:
mor runtime for web
22 lines • 464 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class CacheMap {
constructor(map = {}) {
this.map = {};
this.map = map;
}
set(key, value) {
this.map[key] = value;
}
get(key) {
return this.map[key];
}
has(key) {
return !!this.map[key];
}
delete(key) {
delete this.map[key];
}
}
exports.default = new CacheMap();
//# sourceMappingURL=cacheMap.js.map