Created
April 17, 2013 20:55
-
-
Save mattyod/5407702 to your computer and use it in GitHub Desktop.
f'kin with arguments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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