Created
July 26, 2018 01:24
-
-
Save galvez/c38c9a7e2a395b8de8f08e79cb40a3a8 to your computer and use it in GitHub Desktop.
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 default function makeSymbols (...symbols) { | |
return symbols.reduce((obj, s) => ({ ...obj, [s]: Symbol.for(s) }), {}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment