Merge pull request #19877 from guillaumep/patch-2

ramda: More verbose definition for pathOr
This commit is contained in:
Benjamin Lichtman
2017-09-19 14:44:50 -07:00
committed by GitHub

View File

@@ -1227,9 +1227,9 @@ declare namespace R {
* If the given, non-null object has a value at the given path, returns the value at that path.
* Otherwise returns the provided default value.
*/
pathOr<T>(d: T, p: Path, obj: any): any;
pathOr<T>(d: T, p: Path): (obj: any) => any;
pathOr<T>(d: T): CurriedFunction2<Path, any, any>;
pathOr<T>(defaultValue: T, path: Path, obj: any): any;
pathOr<T>(defaultValue: T, path: Path): (obj: any) => any;
pathOr<T>(defaultValue: T): CurriedFunction2<Path, any, any>;
/**
* Returns true if the specified object property at given path satisfies the given predicate; false otherwise.