Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Created September 7, 2012 04:37
Show Gist options
  • Save easierbycode/3663169 to your computer and use it in GitHub Desktop.
Save easierbycode/3663169 to your computer and use it in GitHub Desktop.
function 'arguments' object
function logStuff() {
for(var n = 0; n < arguments.length; n++) {
console.log(arguments[n]);
}
}
logStuff('a','b','c',1,2,3,{name:'Daniel'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment