Created
March 13, 2012 17:40
-
-
Save afshin/2030122 to your computer and use it in GitHub Desktop.
Partial Application in JavaScript Revisited 2
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
(function () { | |
var delay = setTimeout.partial(undefined, 10); | |
delay(function () { | |
console.log('A call to this function will be temporarily delayed.'); | |
}); | |
// logs 'A call to this function will be temporarily delayed.' | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment