get

Object
since 3.7.0

Returns

* the resolved value.

Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.

Example of Lodash _.get

var object = { 'a': [{ 'b': { 'c': 3 } }] };

_.get(object, 'a[0].b.c');
// => 3

_.get(object, ['a', '0', 'b', 'c']);
// => 3

_.get(object, 'a.b.c', 'default');
// => 'default'