npm.io
1.0.7 • Published 7 years ago

theo-monster

Licence
ISC
Version
1.0.7
Deps
0
Size
1 kB
Vulns
0
Weekly
0

#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