Skip to content

Instantly share code, notes, and snippets.

@jweir
Created February 24, 2012 20:27
Show Gist options
  • Select an option

  • Save jweir/1903527 to your computer and use it in GitHub Desktop.

Select an option

Save jweir/1903527 to your computer and use it in GitHub Desktop.
dynamic keys in object
# Oh, if only this were possible. I know it is not in JS, but still would be cool
z = 'a key'
x =
"#{z}" : 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment