Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created February 28, 2010 02:20
Show Gist options
  • Select an option

  • Save tim-smart/317125 to your computer and use it in GitHub Desktop.

Select an option

Save tim-smart/317125 to your computer and use it in GitHub Desktop.
function test(arg, arg2) {};
// This
test.apply(test, [1, 2]);
// Is the same as
test.call(test, 1, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment