Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created July 27, 2011 15:13
Show Gist options
  • Save DavidQL/1109585 to your computer and use it in GitHub Desktop.
Save DavidQL/1109585 to your computer and use it in GitHub Desktop.
(function(one, two) {
// every function receives
// an array of all the arguments
// even those that your function doesn't "accept"
return arguments; // ['first argument', 2, 'I am a third argument']
})('first argument', 2, 'I am a third argument');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment