Skip to content

Instantly share code, notes, and snippets.

@Termina1
Created October 14, 2011 13:27
Show Gist options
  • Save Termina1/1287094 to your computer and use it in GitHub Desktop.
Save Termina1/1287094 to your computer and use it in GitHub Desktop.
Provides easy way of chain calling of one anonymous function with different params
var lambda = function(func) {
var fn = function() {
func.apply(this, arguments);
return fn;
}
return fn;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment