Skip to content

Instantly share code, notes, and snippets.

@westc
Created November 21, 2014 18:59
Show Gist options
  • Save westc/818dfafabea5937e0bf8 to your computer and use it in GitHub Desktop.
Save westc/818dfafabea5937e0bf8 to your computer and use it in GitHub Desktop.
function apply(fn, context, args) {
return fn.apply(context, args);
}
@westc
Copy link
Author

westc commented Nov 21, 2014

Example call:

alert(apply(Math.max, 0, [1,5,2,3]));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment