Created
October 14, 2011 13:27
-
-
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
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
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