Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fibonacci-js

comboishere21kMIT1.0.0

Generate fibonacci numbers

fibonacci, number, generator

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