@alcadica/debounce
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@alcadica/service.debounce

Coverage Maintainability

Install

npm i --save @alcadica/service.debounce

Examples

import debounce from '@alcadica/debounce';

let counter = 0;

const debounce = debounce(() => counter++, 400);

debounce();
debounce();
debounce();

setTimeout(() => {
  console.log(counter); // will output 1
}, 1000)

Licence

MIT

Readme

Keywords

Package Sidebar

Install

npm i @alcadica/debounce

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.29 kB

Total Files

6

Last publish

Collaborators

  • npm-alcadica
  • octod