object-locator
This small lib helps a developer to go directly inside object properties for any given depth and to return the datat
The problem
const obj = a: b: c: 'd'; // get a.b.c - verbose way ifa && ab && ac return abc
object-locator solution
const locator = ; const obj = a: b: c: 'd'; // elegant way abc // === 'd' // or for non exist object abnotexist // === 'bla'
Install
$ npm install --save-dev object-locator
- Implemented via ES6 proxy, so it it compatible with node 6 >