t-throttle
v0.0.2
Published
Tiny throttle
Downloads
5
Readme
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();
}