Skip to content

Instantly share code, notes, and snippets.

@afshin
Created March 13, 2012 17:40
Show Gist options
  • Save afshin/2030122 to your computer and use it in GitHub Desktop.
Save afshin/2030122 to your computer and use it in GitHub Desktop.
Partial Application in JavaScript Revisited 2
(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