We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Proposed as a shortcut, implemented as follows:
import { updateIn, merge } from 'icepick' const mergeIn = (dest, path, source, associator) => updateIn(dest, path, v => merge(v, source, associator))
Would be willing to implement. I'm not even sure if it's helpful, given how easy (and explicit) it is to construct on the fly. Just a thought.
The text was updated successfully, but these errors were encountered:
Hmnn, I feel this is easier to do manually, either through defining mergeIn yourself, or doing
mergeIn
var newObj = i.updateIn(obj, path, (val) => i.merge(val, source))
Sorry, something went wrong.
Makes sense. Just thinking out loud. Thanks!
No branches or pull requests
Proposed as a shortcut, implemented as follows:
Would be willing to implement. I'm not even sure if it's helpful, given how easy (and explicit) it is to construct on the fly. Just a thought.
The text was updated successfully, but these errors were encountered: