Skip to content

Instantly share code, notes, and snippets.

@ryanhanwu
Created April 18, 2012 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanhanwu/2412005 to your computer and use it in GitHub Desktop.
Save ryanhanwu/2412005 to your computer and use it in GitHub Desktop.
cool usage
//Know arguments number by length
function newFunction(a,b,c,d,e,f,g) {
return false;
}
newFunction.length = 7;
//return function callee for calling
function showSomething(a){
alert(a);
return arguments.callee;
}
showSomething('a')('b')('c');
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment