Skip to content

Instantly share code, notes, and snippets.

@galvez
Created July 26, 2018 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvez/c38c9a7e2a395b8de8f08e79cb40a3a8 to your computer and use it in GitHub Desktop.
Save galvez/c38c9a7e2a395b8de8f08e79cb40a3a8 to your computer and use it in GitHub Desktop.
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