Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Diullei/1657565 to your computer and use it in GitHub Desktop.
[1,2,3,4,5].map(function fatorial(n) {
return (!(n>1))? 1 : fatorial(n-1)*n;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment