Created
January 14, 2021 21:55
-
-
Save calderaro/c698e36754d0f078ac1cc89a1dcf2874 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 reduxSwitchcase = (cases, key) => | |
key in cases ? cases[key] : state => state; | |
export default reduxSwitchcase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment