UNPKG

ltstrg

Version:

Simpler storage for your test experience!

22 lines 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class MemoryLiteStorage { constructor() { this.map = new Map(); } getItem(key) { const value = this.map.get(key); return value != null ? value : null; } setItem(key, value) { this.map.set(key, value); } removeItem(key) { this.map.delete(key); } clear() { this.map.clear(); } } exports.MemoryLiteStorage = MemoryLiteStorage; //# sourceMappingURL=MemoryLiteStorage.js.map