obj-get
Safely get nested properties on an object. Compatible with Node 0.10.0+ and browsers as far back as IE9.
Installation
npm i obj-get -S
Usage
const assert = const get = const obj = single: 1 nested: array: 'first' name: 'second' node: exists: 'abc' // direct accessassertassert // mixed dot-notation and param accessassertassertassert // access to non-existent nodesassertassertassertassert // array accessassertassertassertassert