value-get
Create functional property getters
Install
$ npm install --save value-get
Usage
var get = //=> bar var getFoo = //=> bar var getDeepBar = //=> baz
API
get(path, [obj])
-> any
path
Required
Type: string
The string key path. The path can be a normal key or use dot property syntax for deep access. If you need an actual dot, escape it:
//=> baz
obj
Type: object
The object to get the value from. If no object is supplied, a partially applied function with the path will be returned.
License
MIT © Ben Drucker