package
Get and set properties from deeply nested arrays
npm install nesterGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
var nester = require('nester');
var nestedObj = {a:{b:{c:{d:42}}}}
var res = nester(nestedObj, 'a.b.c.d'); // getting
console.log(res) // 42
nester(nestedObj, 'a.some.other.path[0]', 42);
console.log(nestedObj.a.some.other.path[0]); // 42npm install
npm test