Skip to content

Instantly share code, notes, and snippets.

@emjayess
Created July 26, 2010 14:51
Show Gist options
  • Save emjayess/490641 to your computer and use it in GitHub Desktop.
Save emjayess/490641 to your computer and use it in GitHub Desktop.
function $arr(xargs) {
return Array.prototype.slice.call(xargs);
}
//sample usage:
function someotherfn(arg1,arg2,arg3){
$args = $arr(arguments);
$args.sort();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment