Skip to content

Instantly share code, notes, and snippets.

@naxmefy
Created October 31, 2020 23:22
Show Gist options
  • Save naxmefy/09fedf12fea206a2d5d7d7e400b33d1f to your computer and use it in GitHub Desktop.
Save naxmefy/09fedf12fea206a2d5d7d7e400b33d1f to your computer and use it in GitHub Desktop.
f=n=>n<=-1?-1:n==0?1:n*f(n-1)
// f(5) => 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment