1.0.3 • Published 5 years ago
fibonum-array v1.0.3
fibonum-array
Installation
npm install --save fibonum-arrayUsage
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 specifiedExample:
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:
12586269025License
MIT
Keywords
fibonacci fibonum