-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue in propPathOr if default value is an object (#217)
* Fix issue in propPathOr if default value is an object In the previous implementation, if a property in the target is not found, then the default value would be returned as the accumulator to the next iteration of reduce. If the default value is an object, then it is errantly traversed with the next property in the specified path. * remove cross directory dependency * make sure we don't return default if falsy value is found in object * remove redundant conditional
- Loading branch information
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters