Skip to content

Instantly share code, notes, and snippets.

@jonwolfe
Created December 10, 2013 21:58
Show Gist options
  • Save jonwolfe/7900997 to your computer and use it in GitHub Desktop.
Save jonwolfe/7900997 to your computer and use it in GitHub Desktop.
foo = (param, callback) ->
callback param
foo 3, (x) ->
console.log x
@jonwolfe
Copy link
Author

How to define a coffeescript function that can take an anonymous function as an argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment