UNPKG

obj-chain-core

Version:

fluent chaining for obj with dot-prop access

19 lines (17 loc) 324 B
const MapPlugin = { middleware: { get(key) { return this.store.get(key) }, set(key, val) { return this.store.set(key, val) }, has(key, val) { return this.store.has(key, val) }, del(key, val) { return this.store.delete(key, val) }, }, } module.exports = MapPlugin