Skip to content

Instantly share code, notes, and snippets.

@alecperkins
Created December 5, 2013 18:06
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 alecperkins/7810285 to your computer and use it in GitHub Desktop.
Save alecperkins/7810285 to your computer and use it in GitHub Desktop.
This would be a cool feature of CoffeeScript
someFn
"#{ key }": val
foo: val2
var _obj = {
foo: val2
}
_obj[key] = val;
someFn(_obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment