Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Created April 30, 2014 23:17
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 keithrbennett/f7beb31da8880dd10295 to your computer and use it in GitHub Desktop.
Save keithrbennett/f7beb31da8880dd10295 to your computer and use it in GitHub Desktop.
coffee> obj = { x: 3, y: 4 }
{ x: 3, y: 4 }
coffee> keys = (key for key of obj)
[ 'x', 'y' ]
coffee> vals = keys.map (key) -> obj[key]
[ 3, 4 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment