Skip to content

Instantly share code, notes, and snippets.

@mattyod
Created April 17, 2013 20:55
Show Gist options
  • Save mattyod/5407702 to your computer and use it in GitHub Desktop.
Save mattyod/5407702 to your computer and use it in GitHub Desktop.
f'kin with arguments
function args() {
if (!arguments['0']['2']) {
arguments['0']['2'] = arguments['0']['1'];
}
return arguments;
}
function wrap() {
return args(arguments);
}
var res = wrap(1,2);
console.log(res);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment