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

1.1.0 • Public • Published

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:

  • fn : the function to debounce
  • wait : miliseconds to wait before running the fn again
  • immediate : whether the function should run immediately

License

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i @three11/debounce

    Weekly Downloads

    6

    Version

    1.1.0

    License

    GPL-3.0

    Unpacked Size

    42.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • scriptex
    • alpanayotov