0.0.5 • Published 10 years ago

nester v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

nester - A nested object getter/setter

Usage:

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]); // 42

Testing:

npm install
npm test
0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago