Get a property from deep objects using string notation.
$ npm install dget --save
var obj, val, nonexsting;
obj = {
some: {
prop: {
deep: "Hello world!"
}
}
}
val = dget('some.prop.deep', obj);
console.log(val); // "Hello world!"
nonexisting = dget('non.existing.prop', obj)
console.log(nonexisting); // undefined
$ npm test
BSD