Skip to content

Instantly share code, notes, and snippets.

@adambair
Created October 28, 2011 13:17
Show Gist options
  • Select an option

  • Save adambair/1322231 to your computer and use it in GitHub Desktop.

Select an option

Save adambair/1322231 to your computer and use it in GitHub Desktop.
Destructuring Assignment in CoffeeScript
first, last = ["Jake", "Mauer"]
first, last = "Jake Mauer".split(" ")
# Also see http://blog.carbonfive.com/2011/09/28/destructuring-assignment-in-coffeescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment