Quickly navigate to a single property in a complex object. Based on this
$ npm install get-single-obj-prop
const getSingleObjProp = require('get-single-obj-prop');
const obj = {
a: {
b: {
c: 'test',
},
},
};
getSingleObjProp(obj, 'a.b.c'); //=> 'test'
MIT © Carl Mungazi