Share your code. Components are building blocks, you are the architect.

utils/path
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Retrieve the value at a given path.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/path in your project
npm i @bit/bit.ramda.utils.path
Copied

path (path:Array, obj:Object) : *

Retrieve the value at a given path.

Example

R.path(['a', 'b'], {a: {b: 2}}); //=> 2
     R.path(['a', 'b'], {c: {b: 2}}); //=> undefined

Arguments

path: Array

The path to use.

obj: Object

The object to retrieve the nested property from.

Returns

*

The data at `path`.