• Given an interval and a function returns a new function that will only call the source function if interval milliseconds have passed since the last invocation

    Type Parameters

    • TArgs extends any[]

    Parameters

    • __namedParameters: {
          interval: number;
      }
      • interval: number
    • func: ((...args) => any)
        • (...args): any
        • Parameters

          Returns any

    Returns ThrottledFunction<TArgs>