Skip to content

Instantly share code, notes, and snippets.

@btmills
Created August 10, 2013 19:09
Show Gist options
  • Save btmills/6201735 to your computer and use it in GitHub Desktop.
Save btmills/6201735 to your computer and use it in GitHub Desktop.
Import an object's members into the global namespace. Here Be Footguns.
globalize = (obj) ->
global[k] = v for k, v of obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment