Naysayers Promote Misery
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

properjs-debounce

0.2.0 • Public • Published

debounce

Limit method calls.

Installation

npm install properjs-debounce --save-dev

Usage

var debounce = require( "properjs-debounce" );
 
// Fire callback at end of detection period
var func = debounce(function() {
    // Do stuff here
    
}, 200 );
 
func();
 
// Fire callback at beginning of detection period
func = debounce(function() {
    // Do stuff here
    
}, 200, true );
 
func();

install

npm i properjs-debounce

Downloadsweekly downloads

31

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar