You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a get is performed with a non-existent path, and a parent of the path does exist and is a falsy value, then that value is returned instead of undefined.
If the current behavior is a bug, please provide the steps to reproduce. What is the expected behavior?
Although here, I'm not sure what the expected behavior is. On the one hand, mpath.has('x.3', o) returns false, so I'd expect that get should return undefined. On the other hand, o.x[3] gives d.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If a
get
is performed with a non-existent path, and a parent of the path does exist and is a falsy value, then that value is returned instead of undefined.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
From the node REPL:
What are the versions of Node.js and mpath are you are using? Note that "latest" is not a version.
node 16.19.0
mpath 0.9.0
The text was updated successfully, but these errors were encountered: