New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get a null path not return the defaultValue #77
Comments
Null path is equivalent to an empty path, so the entire object is returned. This is the expected result. |
Ok then, are these lines Lines 227 to 229 in 2b80d6c
|
That line checks the object not the path. 😉 |
Sorry, miss it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://runkit.com/586945e631af31001472d7f4/5871ebc5fe814b0013db83e5
Current behavior:
return the whole object.
Expected behavior:
return the defaultValue.
Related code:
object-path/index.js
Lines 224 to 229 in 2b80d6c
The text was updated successfully, but these errors were encountered: