-
Notifications
You must be signed in to change notification settings - Fork 84
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
has doesn't work with sparse arrays #73
Labels
Comments
Got the same error on an object property that has a null/undefined value, like
So I think this is more general than just array. |
Thanks for reporting this guys I'll look into this as soon as I can. In the meantime any PR is welcome... |
mariocasciaro
added a commit
that referenced
this issue
Sep 1, 2016
Fixed in 0.11.2 |
thanks! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I've noticed that
has
throws an error when I try to check a nested path in a sparse array. I believe it should returnfalse
in this case.Example:
objectPath.has({ foo: [undefined, undefined, undefined] }, 'foo.0.bar')
Throws:
The text was updated successfully, but these errors were encountered: