0.0.2 • Published 6 years ago
t-throttle v0.0.2
t-throttle
The tiny throttle function.
Installation
$ npm install t-throttle --save
How to use
const throttle = require('t-throttle');
const thFunc = throttle(() => {
console.log('exec');
}, 1000);
for (let i = 0; i < 100; i++) {
thFunc();
}