Created
April 30, 2014 23:17
-
-
Save keithrbennett/f7beb31da8880dd10295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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