@f/get-prop
v1.1.1
Published
Get nested property from object.
Readme
get-prop
Get nested property from object.
Installation
$ npm install @f/get-propUsage
var getProp = require('@f/get-prop')
var obj = {foo: {bar: 'baz'}}
getProp('foo.bar', obj) // => 'baz'API
getProp(path, obj)
path- array or dot seperated string specifying pathobj- obj to retrieve property from
Returns: property
License
MIT
