Created
September 20, 2011 22:40
-
-
Save nickjs/1230643 to your computer and use it in GitHub Desktop.
A totally useless way to use CoffeeScript
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
c = (obj) -> | |
(callback) -> | |
callback.call(obj) | |
foo = c 'bar' | |
alert foo -> @length | |
random = c foo: c 'bar' | |
alert random -> @foo -> @[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment