kvo
v1.0.4
Published
Simply use setter and getter!!!
Downloads
3
Readme
Install
$ npm install --save kvo
Usage
const kvo = require('kvo').kvo
var context = {a: {b: {c: 1}}}
// setter
kvo(context, 'a.b.c', 2)
// getter
console.log(kvo(context, 'a.b.c'))