Skip to content

JohannCooper/bottled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Bottled
Bottled

Batched + Throttled = Bottled

OverviewInstallationExamplesCreditsLicense

TODO: Create GIF of bottled components.

Overview

Lodash's debounce and throttle utilities both delay invoking a function until a timeout has elapsed. The delayed function is invoked using the last arguments it was provided.

However, there are many cases where it is useful to access ALL arguments provided to the delayed function during the timeout.

Bottled provides two functions, batchedDebounce and batchedThrottle, to do just that.

Installation

Using npm:

$ npm install bottled

Examples

TODO

React

TODO

Credits

Bottled proudly extends the functionality provided by Lodash's debounce and throttle utilities.

License

MIT


GitHub @JohannCooper

About

Batched + Throttled = Bottled

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors