Skip to content

Underscore.js mixin. A variant of _.debounce that returns the setTimeout id.

Notifications You must be signed in to change notification settings

ainth/underscore.debounceId

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

underscore.debounceId

Underscore's debounce implementation returns the last result of calling the debounced function. This is useful if you care about the return value but the big disadvantage is that there is no way to get the timeout id from debounce. debounceId is a variant of debounce that will always return the timeoutId.

###Usage

The behaviour and arguments are identical to _.debounce (http://underscorejs.org/#debounce). The only difference is in the return value of calling the debounced function. It will always return an (int) that is the id of the timeout.

About

Underscore.js mixin. A variant of _.debounce that returns the setTimeout id.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published