Skip to content

Instantly share code, notes, and snippets.

@Diullei
Created January 22, 2012 16:18
Show Gist options
  • Select an option

  • Save Diullei/1657559 to your computer and use it in GitHub Desktop.

Select an option

Save Diullei/1657559 to your computer and use it in GitHub Desktop.
Exemplo de criação de uma função que utiliza a propriedade callee do objeto arguments
[1,2,3,4,5].map(function(n) {
return (!(n>1))? 1 : arguments.callee(n-1)*n;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment