Created
January 9, 2018 10:57
-
-
Save mweststrate/17c453c9f5cc3dbee7d8e50fdf0c5c0a to your computer and use it in GitHub Desktop.
update-in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ImmutableJS | |
const newMap = map.updateIn(['inMap', 'inList'], list => list.push(4)) | |
// Immer | |
draft.inMap.inList.push(4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment