finesse-toolkit
Version:
useful tools for finesse phone system
31 lines • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Store {
constructor() {
this._store = {};
}
add(id, data) {
this._store[id] = data;
}
remove(id) {
delete this._store[id];
}
get(id) {
return this._store[id];
}
exists(id) {
return !!this._store[id];
}
count() {
return Object.keys(this._store).length;
}
getAllKeys() {
return Object.keys(this._store);
}
getAll() {
return this._store;
}
}
exports.default = Store;
;
//# sourceMappingURL=store.js.map