A throttle that only fires on an interval.
$ npm install @f/throttle-intervaled
var throttle = require('@f/throttle-intervaled')
var hello = throttle(500, function () {
console.log('Hello world')
})
// will log "hello world" once, 500 ms from first call
hello()
hello()
interval
- intervalfn
- function to throttle
Returns: throttled fn
MIT