fib-interval
setInterval using a series of incrementing Fibonacci durations
Install
$ npm install --save fib-interval
Usage
- Unlike
setInterval
- The delay provided must be a numeric Array with the first 2 values to use
- To stop a timer you must call
.clear()
on the instance - To snoop out the current delay time, call
.delay()
on the instance
For Example:
'use strict'; var fibInterval = ; // fibInterval(Function, [Number, Number]) : Object var instance = ; // ==> results:// 0// 100// 100// 200// 300// 500// 800// fatto
License
ISC © Buster Collings