-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Allow to use setIn for deep-nested values #131
Allow to use setIn for deep-nested values #131
Comments
That could work. There's a corner case that'll need to be settled with a path like |
I would say a map? If the intention with |
Finally got around to implementing this. Went with non-negative integer keys creating sequences + everything else creating maps, as that's what Lodash also does. |
Hi!
When using
Documents
, sometimes I need to set a value which parent node doesn't exists (yet) but that ends up in an error:The above can be done executing
d.setIn(["a"], {b: 1})
but I was thinking that it would be helpful for the methodsetIn
to do that for you, similar to how lodash works:Do you think this is something doable? Thanks in advance!
The text was updated successfully, but these errors were encountered: