Skip to content

Instantly share code, notes, and snippets.

@mattyod
Created May 19, 2013 21:54
Show Gist options
  • Save mattyod/5609187 to your computer and use it in GitHub Desktop.
Save mattyod/5609187 to your computer and use it in GitHub Desktop.
Functional folly
var x, // Give me a value for it to be twoo
method = function (callback) {
callback();
};
var twoo = function () {
console.log('twoo');
};
var fawlse = function () {
console.log('fawlse');
};
method(x? twoo : fawlse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment