Created
October 9, 2012 18:20
-
-
Save dyoder/3860482 to your computer and use it in GitHub Desktop.
CoffeeScript Function Arguments
This file contains hidden or 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
foo | |
bar: "monday" | |
baz: 7 | |
-> | |
"omg, this works" | |
# meanwhile ... | |
foo | |
bar: "tuesday" | |
baz: 11 | |
blurg |
This file contains hidden or 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
// Translates into ... | |
foo({ | |
bar: "monday", | |
baz: 7 | |
}, function() { | |
return "omg, this works"; | |
}); | |
foo({ | |
bar: "tuesday", | |
baz: 11 | |
}, blurg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment