1.1.0 • Published 4 years ago
throttle-callback v1.1.0
throttle-callback
Throttle a callback
const throttleCallback = require('throttle-callback')
const callback = throttleCallback(
arg => console.log(arg),
10 // Milliseconds
)
callback('One')
callback('Two')
callback('Three')
// Three