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
possibly add an immer implementation that can be used with map/filter/forEach
ex. const immerMap = (fn) => (item) => immer( item, fn ) var arr = [['1'], ['2'], ['3']]; arr.map(immerMap((item) => {item.push('new')}));
The text was updated successfully, but these errors were encountered:
this is why we could use of swap arguments and currying.
(proposal)
arr.map(immer((item) => {item.push('new')}));
Sorry, something went wrong.
Implemented in 0.4.0. See https://github.com/mweststrate/immer#currying. The first example covers the above
No branches or pull requests
possibly add an immer implementation that can be used with map/filter/forEach
The text was updated successfully, but these errors were encountered: