UNPKG

fibfunc

Version:

6 lines 115 B
module.exports = (n) => { if (n == 1 || n == 2) { return 1 }; return fib(n - 2) + fib(n - 1); }