Creates throttled version of function

  • Type Parameters

    • F extends (...args: any[]) => any

    Parameters

    • ms: number

      Minimum time between calls

    • f: F

      Function to throttle

    Returns F | (...thisArgs: Parameters<F>) => void

    Throttled function