Skip to content

Instantly share code, notes, and snippets.

@spacepluk
Last active August 29, 2015 14:16
Show Gist options
  • Save spacepluk/35be6f5df5b07499fd56 to your computer and use it in GitHub Desktop.
Save spacepluk/35be6f5df5b07499fd56 to your computer and use it in GitHub Desktop.
var fibonacci = (n) => (n > 1) ? fibonacci(n - 1) + fibonacci(n - 2) :
(n == 1) ? 1 :
(n == 0) ? 0 :
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment