1.0.3 • Published 4 years ago

@numpod/debounce-my-function v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

debounce-my-function

Description

Debounce My Function is a helper to transform any function passed in "debounced". Which means, the function passed will execute after X ms.

Usage

const debouncedFunction = debounceMyFunction(yourFunction, 1000, 500);

debouncedFunction();

// yourFunction will execute with a delay of 1000 ms.

// The 500ms in third parameter makes a small delay in the activation.

Thank you and be free to contribute.