Created
December 19, 2016 17:00
-
-
Save szastupov/8b4f1cfa3b179fae1c5a1b03dda05bc9 to your computer and use it in GitHub Desktop.
tfw javascript looks like haskell
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
const updater = (data, onUpdate) => (field) => (value) => { | |
onUpdate({ | |
...data, | |
[field]: value | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment