Repository URL to install this package:
|
Version:
6.0.4 ▾
|
declare const _default: import("./curry").CurriedFunction2<any, any, any>;
/**
* @desc retrieve the value at a given path.
* @since v5.0.0
* @memberOf fp
* @curried 2
*
* @param {Array} path The path to use.
* @param {Object} obj The object to retrieve the nested property from.
* @return {*} The data at `path`.
*
* @func
* @category Object
* @typedefn Idx = String | Int
* @sig [Idx] -> {a} -> a | Undefined
*
* {@link https://github.com/ramda/ramda/blob/master/src/path.js ramda-path}
* @see {@link ramda-path}
* @see fp/prop
*
* @example
*
* path(['a', 'b'], {a: {b: 2}}); //=> 2
* path(['a', 'b'], {c: {b: 2}}); //=> undefined
*
*/
export default _default;