fibonacci-js
v1.0.0
Published
Generate fibonacci numbers
Downloads
21,154
Maintainers
Readme
fibonacci-js
You can generate fibonacci numbers with custom length.
List of Features
- Generate fibonacci numbers with custom length
Download & Installation
$ npm i fibonacci-js
Example Usage
const generateFibonacciNumbers = require('fibonacci-js')
const length = 10 // custom length
const fibNumbers = generateFibonacciNumbers(length)
console.log(fibNumbers)
/*
OUTPUT:
[
1, 1, 2, 3, 5,
8, 13, 21, 34, 55
]
*/
License
This project is licensed under the MIT License