Neurotic Pantaloon Maker
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    properjs-debouncepublic

    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

    75

    version

    0.2.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar