Skip to content

Instantly share code, notes, and snippets.

@samleb
Created June 10, 2009 11:09
Show Gist options
  • Select an option

  • Save samleb/127150 to your computer and use it in GitHub Desktop.

Select an option

Save samleb/127150 to your computer and use it in GitHub Desktop.
function remaining(args) {
return Array.prototype.slice.call(args, args.callee.length);
}
function example(first) {
alert("I was given : " + first);
alert("but also : " + remaining(arguments));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment