throttler-js
v1.0.3
Published
throttler-js allows you to improve your application’s performance by limiting the number of events your code needs to handle.You should use a throttle when you want to execute a callback at a controlled rate, allowing you to handle intermediate states rep
Downloads
5
Readme
throttler-js
A simple Javascript Throttler
Install
npm install throttler-js
Usage
import throttle from 'throttler-js';
// Throttle it to 2000ms
throttle(callback, 2000);
Tests
npm run test