Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / typings / fp / path.d.ts
Size: Mime:
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;