Skip to content

kitajchuk/debounce

Repository files navigation

ProperJS // debounce

Limit your method calls.

Installation

npm i properjs-debounce --save-dev

Usage

import debounce from "properjs-debounce";

// Fire callback at end of detection period
const end = debounce(() => {
    // Do stuff here

}, 200 );

end();

// Fire callback at beginning of detection period
const begin = debounce(() => {
    // Do stuff here

}, 200, true );

begin();

About

Limit your method calls.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published