Get a property from a nested object using a dot path or custom separator
npm install @strikeentco/getget  
==========
  
One of the smallest (23 sloc) and most effective implementations of getting a nested value from an object.
``sh`
$ npm install @strikeentco/get --save
`javascript
const get = require('@strikeentco/get');
get({ a: { b: 'c' } }, 'a.b');
//=> 'c'
get({ a: { b: ['c', 'd'] } }, 'a.b.1');
//=> 'd'
get({ a: { b: ['c', 'd'] } }, ['a', 'b']);
//=> ['c', 'd']
get({ a: { b: 'c' } }, 'a.b.c.d');
//=> undefined
get({ a: { b: 'c' } }, 'a:b', ':');
//=> 'c'
`API
#### Params:
obj (Object*) - Source object.
path (String|Array*) - String or array with path.
[separator] (String*) - . by default.
`deep.js (175 bytes)
dot-prop x 633,102 ops/sec ±1.19% (85 runs sampled)
get-value x 1,138,909 ops/sec ±1.80% (87 runs sampled)
get x 2,066,525 ops/sec ±0.99% (90 runs sampled) - this library
getobject x 170,159 ops/sec ±1.17% (88 runs sampled)
lodash.get x 1,847,112 ops/sec ±0.60% (89 runs sampled)
object-path x 126,724 ops/sec ±2.33% (86 runs sampled)
fastest is get - this library
fastest is get-value
fastest is get - this library
`
Benchmark from jonschlinkert/get-value` library.
The MIT License (MIT)
Copyright (c) 2018 Alexey Bystrov