UNPKG

babel-plugin-mini

Version:
16 lines (12 loc) 259 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function tail(n) { return fib(n, 0, 1); } function fib(n, current, next) { if (n === 0) return current; return fib(n - 1, next, current + next); } exports.default = tail;