Debounces a function

  • Parameters

    • debouncedFunction: ((...args: AnyArg) => void)

      the function that needs debouncing

        • (...args): void
        • Parameters

          • Rest...args: AnyArg

          Returns void

    • timeoutInMsecs: number

      the timeout for the debounce in milliseconds

    Returns ((...args: AnyArg) => void)

    the debounced function

      • (...args): void
      • Parameters

        • Rest...args: AnyArg

        Returns void