1.0.3 • Published 3 years ago

fibonum-array v1.0.3

Weekly downloads
61
License
MIT
Repository
github
Last release
3 years ago

fibonum-array

Build Status Maintainability Test Coverage

Installation

npm install --save fibonum-array

Usage

This library provide two methods.

import { getByElementCount, getByIndexValue } from 'fibonum-array'

let array = getByElementCount( params );  // Get Fibonacci Number As many elements as you specify
let number = getByIndexValue( params );  // Get Fibonacci Number As Index number you specified

Example:

import { getByElementCount, getByIndexValue} from 'fibonum-array'

Get Fibonacci Number Array

let array = new Array
array = getByElementCount(5);
console.log(array);

reult:

[0, 1, 1, 2, 3, 5]

Get Fibonacci Number you specified

let number = new Number
number = getByIndexValue(50);
console.log(number);

reult:

12586269025

License

MIT

Keywords

fibonacci fibonum