Created
August 24, 2016 13:31
-
-
Save nesbtesh/43b8b70b842769453424b710c367dd88 to your computer and use it in GitHub Desktop.
Create Redux Constants
This file contains hidden or 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
export function createConstants(...constants) { | |
return constants.reduce((acc, constant) => { | |
acc[constant] = constant; | |
return acc; | |
}, {}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment