View on GitHub

debounce

Debounce multiple function executions

GitHub release GitHub issues GitHub last commit Build Status npm npm Analytics

Debounce

Debounce multiple function executions

Install

npm i @three11/debounce

or

yarn add @three11/debounce

Usage

First, import the module:

import debounce from '@three11/debounce';

Then use it to postpone a function’s execution:

debounce(yourAwesomeFn());

Arguments

debounce(fn, wait, immediate) accepts three arguments:

License

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007