Options
All
  • Public
  • Public/Protected
  • All
Menu

Module function/debounce

Index

References

Interfaces

Functions

References

Renames and re-exports debounce

Functions

  • Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. Delayed function invocation might be cancelled by calling cancel method.

    Type parameters

    Parameters

    • wait: number

      The number of milliseconds to delay.

    • fn: F

      The function to debounce.

    Returns DebounceFunc<F>

    Returns the new debounced function.

  • Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. Delayed function invocation might be cancelled by calling cancel method.

    Parameters

    • wait: number

      The number of milliseconds to delay.

    Returns <F>(fn: F) => DebounceFunc<F>

    Returns the new debounced function.

Generated using TypeDoc