Skip to content

aneldev/dyna-debounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Simpler API for the lovely lodash.debounce.

Also, includes only the debounce and not the whole lodash.

Written in TypeScript, runs everywhere.

dynaDebounce

dynaDebounce = (func,           // the function to call
                timeout,        // timeout in ms
                config?: IDynaDebounceConfig {
                    leading?: boolean; // default: true       Set true to trigger on first call always.
                    maxWait?: number;  // default: undefined  Set the timeout for max wait, to call it anyway after this timeout.
                }
) => Function

Reference

lodash.debounce