Created
June 3, 2016 23:27
-
-
Save joaomilho/8d396c904e92f638b989ca49cb2ac4b4 to your computer and use it in GitHub Desktop.
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 calculatorReducer = guard({ | |
add: (state, payload) => state + payload], | |
subtract: (state, payload) => state - payload], | |
multiply: (state, payload) => state * payload], | |
divide: (state, payload) => state / payload], | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment