UNPKG
obj-chain-core
Version:
latest (0.0.9)
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
fluent chaining for obj with dot-prop access
github.com/aretecode/obj-chain
aretecode/obj-chain
obj-chain-core
/
play
/
plugins
/
MapPlugin.js
19 lines
(17 loc)
•
324 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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