setInterval Thunk.
$ npm install --save interval-thunk
var intervalThunk = require('interval-thunk');
var interval = intervalThunk(function(){
console.log('meow');
})(5000);
^ // meows, every 5000ms once.
Required
Type: function
The function that has to be repeatedly executed.
Type: Number
in ms.
Default: 0
delay for the interval function to wait before each call to func
.
MIT © hemanth