observify-keypath
get/set observify values using dot-notation keypaths
Install
npm install --save observify-keypath
Example
var keypath = ; var data = ; // get a valuevar value = keypath; // set a valuekeypath;
Usage
var keypath = require('observify-keypath');
Methods
keypath.get(data, keypath);
data
is the observify object.
keypath
is the path of keys specified using dot notation.
keypath.set(data, keypath, value);
data
is that observify object.
keypath
is the path of keys specified using dot notation.
value
is what you will set the value to.
License
MIT