Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "internal/debounce"

Index

Functions

Functions

debounce

  • debounce(callback: function, timeToDelay?: number, choose?: undefined | function): (Anonymous function)
  • create a delayed call, can be called multiple times but only the last one at most delayed by timeToDelay will be executed

    internal

    Parameters

    • callback: function

      the callback to call

        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • Default value timeToDelay: number = 100

      delay the call in milliseconds

    • Optional choose: undefined | function

    Returns (Anonymous function)

    a function that can be called with the same interface as the callback but delayed