Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Created January 14, 2019 17:27
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 carbide-public/dd527f49003770fde849a14a0884f822 to your computer and use it in GitHub Desktop.
Save carbide-public/dd527f49003770fde849a14a0884f822 to your computer and use it in GitHub Desktop.
untitled
const hmmm = {
a: 1
}
const t1 = {
[hmmm['a']]: 1
}
const t2 = {
[`${hmmm.a}`]: 1
}
JSON.stringify(t1) === JSON.stringify(t2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment