Skip to content

Instantly share code, notes, and snippets.

@afshin
Created March 13, 2012 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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