Throttles a function

  • Parameters

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

      the function that needs throttling

        • (...args): void
        • Parameters

          • Rest...args: AnyArg

          Returns void

    • delayMsecs: number

      the delay for the throttle in milliseconds

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

    the throttled function

      • (...args): void
      • Parameters

        • Rest...args: AnyArg

        Returns void