Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Diullei/1657540 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
function fatorial(n) {
return (!(n>1))? 1 : fatorial(n-1)*n;
}
[1,2,3,4,5].map(fatorial);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment