properjs-debounce

0.3.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    2
  • 0.2.0
    9
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i properjs-debounce

Weekly Downloads

11

Version

0.3.0

License

none

Unpacked Size

4.77 kB

Total Files

7

Last publish

Collaborators

  • kitajchuk