0.3.0 • Published 5 years ago

properjs-debounce v0.3.0

Weekly downloads
22
License
-
Repository
github
Last release
5 years ago

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();
0.3.0

5 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago