@reverse/debounce
v1.0.5
Published
Debounce, Throttle, and Queue Execution Factories.
Downloads
6
Readme
@reverse/debounce
Debounce, Throttle, and Queue Execution Factories
You can install with nodejs and npm
npm i @reverse/emitter
Table of Contents**
debounce
import { debounce } from '@reverse/debounce';
function thing() {
console.log('Thing was ran!');
}
const debouncedThing = debounce(thing, 500);
throttle
import { throttle } from '@reverse/debounce';
function thing() {
console.log('Thing was ran!');
}
const throttledThing = throttle(thing, 500);
queueExec
import { queueExec } from '@reverse/debounce';
function thing() {
console.log('Thing was ran!');
}
const queuedThing = queueExec(thing, 500);