1.0.7 • Published 5 years ago
theo-monster v1.0.7
#Overview
This is a simple JS library that takes in an integer (n) and computes the zero-indexed nth number in the fibonacci sequence.
Installation
$ npm i theo-monster
Importing
import fib from 'theo-monster'; // ES6
const fib = require('theo-monster').default; // ES5
Usage
const result = fib(6); // result = 8